Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9278 in orxonox.OLD for branches/proxy/src/lib


Ignore:
Timestamp:
Jul 13, 2006, 10:54:03 PM (18 years ago)
Author:
patrick
Message:

node additions centralized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/monitor/network_monitor.h

    r9277 r9278  
    1010#include "synchronizeable.h"
    1111
     12#include "network_node.h"
     13
    1214#include <list>
    1315
    1416class NetworkStream;
    1517class PeerInfo;
    16 class NetworkNode;
     18
    1719
    1820namespace OrxGui { class GLGuiBox; };
     
    3234    void removeNetworkNode(NetworkNode* node);
    3335
    34     void addClient(PeerInfo* node);
    35     void addProxyServer(PeerInfo* node);
    36     void addMasterServer(PeerInfo* node);
     36    inline void addClient(NetworkNode* node, PeerInfo* pInfo) { node->addClient(pInfo); }
     37    inline void addProxyServer(NetworkNode* node, PeerInfo* pInfo) { node->addProxyServer(pInfo); }
     38    inline void addMasterServer(NetworkNode* node, PeerInfo* pInfo) { node->addMasterServer(pInfo); }
    3739
    38     void removeClient(PeerInfo* node);
    39     void removeProxyServer(PeerInfo* node);
    40     void removeMasterServer(PeerInfo* node);
     40    inline void removeClient(NetworkNode* node, PeerInfo* pInfo) { node->removeClient(pInfo); }
     41    inline void removeProxyServer(NetworkNode* node, PeerInfo* pInfo) { node->removeProxyServer(pInfo); }
     42    inline void removeMasterServer(NetworkNode* node, PeerInfo* pInfo) { node->removeMasterServer(pInfo); }
    4143
    4244
Note: See TracChangeset for help on using the changeset viewer.