home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.beos      Underrated early 90's OS, sad it died...      1,512 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 227 of 1,512   
   Elliot Rosenberger to Brian Cohen   
   Re: BeAIM problems   
   17 Nov 03 23:17:48   
   
   From: elliot@rodentindustries.com   
      
   Brian Cohen wrote:   
   > All of a sudden I can't sign on with BeAIM... it signs on and then   
   > immediately disconnects me.  I've heard that other people are having   
   > similar difficulties.  Does anyone have any suggestions?  Thanks,   
   >   
   > -Brian   
   >   
      
   Cyan Helkaraxe found that the problem lies in the speed that BeAIM   
   connects at.  If you download the source to BeAIM and add some   
   snooze(1000000)'s into AIMLogin.cpp (it might be something else -- I'm   
   basing this on 1.5.5-beta2's sources), it'll fix it.  Lines 95 through   
   201 should look something like the following:   
      
   void AIMNetManager::DoLogin( BMessage* info ) {   
      
   	char channel;   
      
   	printf( "dologin()... %d\n", preLoginPhase );   
      
   	// do stuff based on the login phase   
   	switch( preLoginPhase ) {   
   		   
   		// Just after the initial connection   
   		case 1:   
   			LoginStep( Language.get("LS_CONNECTED_AUTH_SERVER") );   
   			sendSequence = 0;   
   			recvSequence = 0;   
   			break;   
      
   		// Connection acknowledgement received from authorization server   
   		case 2:   
   			// snooze(1000000);   
   			printf( "waitink for ack packet...\n" );   
   			channel = Receive(authNetlet);   
   			printf( "ack packet recv'd on channel %c\n", channel );   
   			SendLoginData();   
   			break;   
      
   		// Authorization response received... check to see if we can login   
   		case 3:   
   			// snooze(1000000);   
   			LoginStep( Language.get("LS_AUTH_RECEIVED") );   
   			ParseLoginResponse( recvBuf );   
   			break;   
      
   		// Connected to BOS server   
   		case 4:   
   			// snooze(1000000);   
   			LoginStep( Language.get("LS_CONNECTED_AIM_SERVER") );   
   			printf( "DoLogin(): connected to BOS server\n" );   
   			break;   
      
   		// BOS connection acknowledgment... send the sign on request   
   		case 5:   
   			// snooze(1000000);   
   			channel = Receive(mainNetlet);   
   			printf( "BOS connection ack packet recv'd on channel %d  (size: %d   
   bytes)\n", (int)channel, recvBuf.length() );   
   			SendBOSRequest();   
   			break;   
      
   		// Host Ready response received... send the rate request   
   		case 6:   
   			// snooze(1000000);   
   			LoginStep( Language.get("LS_RECV_HOST_READY") );   
   			printf( "host ready response received\n" );   
   			ReceiveBOSResponse();   
   			SendBOSRequest();   
   			break;   
   			   
   		// Rate response received... send rate acknowledgement (and other stuff)   
   		case 7:   
   			// snooze(1000000);   
   			LoginStep( Language.get("LS_RECV_RATE") );   
   			ReceiveBOSResponse();   
   			SendBOSRequest();   
   			ProcessMainServerCommands();   
   			break;   
   		   
   		// Process the responses to various other stuff we have sent up	   
   		case 8:   
   		case 9:   
   		case 10:   
   			snooze(1000000);   
   			LoginStep( "", false );   
   			printf( "got something! yeah!\n" );   
   			ReceiveBOSResponse();   
   			ProcessMainServerCommands();   
   			break;   
   		   
   		// server is done sending responses... send up more stuff   
   		case 11:   
   			snooze(1000000);   
   			printf( "boo-rah!\n" );   
   			LoginStep( Language.get("LS_RECV_HOST") );   
   			//ReceiveBOSResponse();   
   			SendBOSRequest();   
   			ProcessMainServerCommands();   
   			break;   
   		   
   		// minimum report interval   
   		case 12:   
   			snooze(1000000);   
   			LoginStep( Language.get("LS_RECV_REPORT_INT") );   
   			ReceiveBOSResponse();   
   			ProcessMainServerCommands();   
   			break;   
   			   
   		// mystery packet (comes at the end of login)   
   		case 13:   
   			snooze(1000000);   
   			LoginStep( Language.get("LS_FINALIZING") );   
   			ReceiveBOSResponse();   
   			ProcessMainServerCommands();   
   			NowOnline();   
   			return;   
   	};   
      
   	// Time for the next step   
   	++preLoginPhase;	   
   }   
      
   Regards,   
   -- Elliot   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca