Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9625 in orxonox.OLD for branches/proxy/src/lib/network/proxy


Ignore:
Timestamp:
Jul 30, 2006, 11:19:24 PM (18 years ago)
Author:
patrick
Message:

yet another weekend commit, quite much work done:

  • introduced a new PERMISSION layer: PERMISSION_SERVER: the nearest server hast authority
  • tightening up permissions: brand new implementation to prevent sending unused variables in the network (less smog in the net:D_
  • removed some compiler warnings from some central modules
  • networkmonitor interface changed to work with networknodes mainly
  • better debug output for the network monitor
  • networnode inteface standardisation
  • force reconnection commands integration
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  
    3939
    4040
    41 // SHELL_COMMAND(forceReconnect, ProxyControl, forceReconnectionShell);
    42 SHELL_COMMAND(bla, ProxyControl, forceReconnectionShellThumb);
    43 
     41SHELL_COMMAND(forceReconnect, ProxyControl, forceReconnectionShell);
    4442
    4543/**
     
    250248void ProxyControl::forceReconnectionShell(int userId, int serverId)
    251249{
     250  PRINTF(0)("shell reconnectoin command: %i to %i\n", userId, serverId);
     251
    252252  this->forceReconnection(userId, serverId);
    253253}
     
    264264  if( serverInfo == NULL)
    265265  {
    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->isMasterServer() || serverInfo->isProxyServerActive())
    270   {
    271     PRINTF(0)("You can't connecto 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);
    272272    return;
    273273  }
     
    306306  if( pInfo == NULL)
    307307  {
    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);
    309309    return;
    310310  }
     
    316316  assert( Converter::intToByteArray( newAddress.host(), data + 2 * INTSIZE, INTSIZE ) == INTSIZE );
    317317
     318  PRINTF(0)("Sending reconnection command to: %i\n", userId);
    318319  MessageManager::getInstance()->sendMessage( MSGID_PROXY_COMMAND, data, 3*INTSIZE, RT_ALL_ME, NET_UNASSIGNED, MP_HIGHBANDWIDTH );
    319320}
  • branches/proxy/src/lib/network/proxy/proxy_control.h

    r9603 r9625  
    1818typedef enum proxyCommand {
    1919  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
    2023
    2124  PXY_NUMBER
Note: See TracChangeset for help on using the changeset viewer.