Changeset 9625 in orxonox.OLD for branches/proxy/src/lib/network/proxy
- Timestamp:
- Jul 30, 2006, 11:19:24 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network/proxy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/proxy/proxy_control.cc
r9603 r9625 39 39 40 40 41 // SHELL_COMMAND(forceReconnect, ProxyControl, forceReconnectionShell); 42 SHELL_COMMAND(bla, ProxyControl, forceReconnectionShellThumb); 43 41 SHELL_COMMAND(forceReconnect, ProxyControl, forceReconnectionShell); 44 42 45 43 /** … … 250 248 void ProxyControl::forceReconnectionShell(int userId, int serverId) 251 249 { 250 PRINTF(0)("shell reconnectoin command: %i to %i\n", userId, serverId); 251 252 252 this->forceReconnection(userId, serverId); 253 253 } … … 264 264 if( serverInfo == NULL) 265 265 { 266 PRINTF(0)("There is no node with userId %i registered in this network. Check the uid again\n");267 return; 268 } 269 else if( serverInfo->is MasterServer() || serverInfo->isProxyServerActive())270 { 271 PRINTF(0)("You can't connec to to a client (userId %i)\n", serverId);266 PRINTF(0)("There is no server with userId %i registered in this network. Check the uid again\n", serverId); 267 return; 268 } 269 else if( serverInfo->isClient()) 270 { 271 PRINTF(0)("You can't connec to to a client (userId %i)\n", serverId); 272 272 return; 273 273 } … … 306 306 if( pInfo == NULL) 307 307 { 308 PRINTF(0)("There is no node with userId %i registered in this network. Check the uid again\n");308 PRINTF(0)("There is no client with userId %i registered in this network. Check the uid again\n", userId); 309 309 return; 310 310 } … … 316 316 assert( Converter::intToByteArray( newAddress.host(), data + 2 * INTSIZE, INTSIZE ) == INTSIZE ); 317 317 318 PRINTF(0)("Sending reconnection command to: %i\n", userId); 318 319 MessageManager::getInstance()->sendMessage( MSGID_PROXY_COMMAND, data, 3*INTSIZE, RT_ALL_ME, NET_UNASSIGNED, MP_HIGHBANDWIDTH ); 319 320 } -
branches/proxy/src/lib/network/proxy/proxy_control.h
r9603 r9625 18 18 typedef enum proxyCommand { 19 19 PXY_RECONNECT = 0, //!< forces a reconnection of the node 20 21 PXY_WEAKUP, //!< signal to weakup a sleeping proxy server (not impl. yet) 22 PXY_SLEEP, //!< signal to sleep and disconnect clients 20 23 21 24 PXY_NUMBER
Note: See TracChangeset
for help on using the changeset viewer.