- Timestamp:
- Nov 17, 2010, 4:05:13 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/masterserver/src/libraries/network/Server.cc
r7634 r7650 105 105 /* initialize it and see if it worked */ 106 106 if( msc.initialize() ) 107 COUT(1) << "Error: could not initialize master server communications!\n"; 107 { COUT(1) << "Error: could not initialize master server communications!\n"; 108 return; 109 } 108 110 109 111 /* connect and see if it worked */ 110 112 if( msc.connect( MS_ADDRESS, 1234 ) ) 111 COUT(1) << "Error: could not connect to master server!\n"; 112 113 /* TODO */ 113 { COUT(1) << "Error: could not connect to master server!\n"; 114 return; 115 } 116 114 117 /* now send the master server some note we're here */ 118 msc.sendRequest( MSPROTO_GAME_SERVER " " MSPROTO_REGISTER_SERVER ); 115 119 } 116 120 … … 164 168 165 169 /* TODO */ 166 int rep lyhandler( char *addr, ENetEvent *ev )170 int rephandler( char *addr, ENetEvent *ev ) 167 171 { 168 172 /* handle incoming data */ … … 174 178 void Server::helper_HandleMasterServerRequests() 175 179 { 176 this->msc.pollForReply( rep lyhandler );180 this->msc.pollForReply( rephandler ); 177 181 } 178 182
Note: See TracChangeset
for help on using the changeset viewer.