Changeset 9264 in orxonox.OLD for branches/proxy
- Timestamp:
- Jul 13, 2006, 10:24:09 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_monitor.cc
r9263 r9264 32 32 33 33 } 34 35 36 /** 37 * deconstructor 38 */ 39 NetworkMonitor::~NetworkMonitor() 40 {} 34 41 35 42 -
branches/proxy/src/lib/network/network_monitor.h
r9263 r9264 1 1 /*! 2 * @file network_ stream.h3 * implementation of a network pipe2 * @file network_monitor.h 3 * a class to monitor the network: throughput, network nodes 4 4 */ 5 5 … … 10 10 #include "synchronizeable.h" 11 11 12 #include <list> 13 12 14 class NetworkStream; 15 class PeerInfo; 16 13 17 14 18 class NetworkMonitor : public Synchronizeable … … 17 21 public: 18 22 NetworkMonitor(NetworkStream* networkStream); 23 virtual ~NetworkMonitor(); 24 25 26 void addClient(PeerInfo* node); 27 void addProxyServer(PeerInfo* node); 28 void addMasterServer(PeerInfor* node); 29 30 void removeClient(PeerInfor* node); 31 void removeProxyServer(PeerInfor* node); 32 void removeMasterServer(PeerInfor* node); 33 34 35 void process(); 36 37 38 private: 39 std::list<PeerInfo*> clientList; //!< list of all clients in the network 40 std::list<PeerInfo*> proxyServerList; //!< list of all proxy servers in the network 41 std::list<PeerInfo*> masterServerList; //!< list of all master servers in the network (should be 1!! :D) 19 42 }; 20 43
Note: See TracChangeset
for help on using the changeset viewer.