- Timestamp:
- Dec 11, 2010, 9:07:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/libraries/network/Server.cc
r7750 r7756 134 134 135 135 /* make discoverable on WAN */ 136 /* TODO this needs to be optional, we need a switch from the UI to 137 * enable/disable this 138 */ 136 139 helper_ConnectToMasterserver(); 137 140 … … 169 172 170 173 171 /* TODO*/174 /* handle incoming data */ 172 175 int rephandler( char *addr, ENetEvent *ev ) 173 176 { 174 /* handle incoming data */ 175 /* TODO this is to be implemented. */ 177 /* reply to pings */ 178 if( !strncmp( (char *)ev->packet->data, MSPROTO_PING_GAMESERVER, 179 MSPROTO_PING_GAMESERVER_LEN ) ) 180 //this->msc.sendRequest( MSPROTO_ACK ); 181 /* NOTE implement this after pollForReply 182 * reimplementation 183 */ 184 return 0; 176 185 177 186 /* done handling, return all ok code 0 */ … … 184 193 * has to be done or changed. 185 194 */ 186 this->msc.pollForReply( rephandler );195 this->msc.pollForReply( rephandler, 10 ); 187 196 } 188 197
Note: See TracChangeset
for help on using the changeset viewer.