- Timestamp:
- Jul 28, 2006, 10:07:15 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_monitor.h
r9494 r9583 76 76 77 77 inline const std::list<NetworkNode*>& getNodeList() const { return this->nodeList; }; 78 inline PeerInfo* getPeerByUserId( int userId) { this->localNode->getPeerByUserId(userId); } 78 79 79 80 void toggleGUI(); -
branches/proxy/src/lib/network/monitor/network_node.cc
r9582 r9583 154 154 * @return the peer info of this node NULL if nothing found 155 155 */ 156 PeerInfo* NetworkNode::get NodeByUserId( int userId)156 PeerInfo* NetworkNode::getPeerByUserId( int userId) 157 157 { 158 158 // look through the master server lists -
branches/proxy/src/lib/network/monitor/network_node.h
r9582 r9583 46 46 inline std::list<PeerInfo*> getClient() const { return this->clientList; } 47 47 48 PeerInfo* get NodeByUserId( int userId);48 PeerInfo* getPeerByUserId( int userId); 49 49 50 50 /** @returns the number of players */ -
branches/proxy/src/lib/network/network_stream.cc
r9576 r9583 302 302 // create the network monitor after all the init work and before there is any connection handlings 303 303 if( this->networkMonitor == NULL) 304 { 304 305 this->networkMonitor = new NetworkMonitor(this); 306 SharedNetworkData::getInstance()->setNetworkMonitor( this->networkMonitor); 307 } 305 308 306 309 -
branches/proxy/src/lib/network/proxy/proxy_control.cc
r9582 r9583 89 89 assert( Converter::intToByteArray( userId, data, INTSIZE ) == INTSIZE ); 90 90 // and the ip as an int 91 91 PeerInfo* pInfo = SharedNetworkData::getInstance()->getNetworkMonitor()->getPeerByUserId(userId); 92 92 assert( Converter::intToByteArray( userId, data, INTSIZE ) == INTSIZE ); 93 93 -
branches/proxy/src/lib/network/shared_network_data.h
r9494 r9583 16 16 17 17 class Synchronizeable; 18 class NetworkMonitor; 18 19 19 20 … … 64 65 inline void setDefaultSyncStream(NetworkStream* defaultSyncStream) { this->defaultSyncStream = defaultSyncStream; } 65 66 67 /** @returns the network monitor reference */ 68 inline NetworkMonitor* getNetworkMonitor() { return this->networkMonitor; } 69 /** @param networkMonitor sets the NetworkMonitor reference */ 70 inline void setNetworkMonitor( NetworkMonitor* networkMonitor) { this->networkMonitor = networkMonitor; } 71 66 72 67 73 private: … … 75 81 int hostID; //!< The Host-ID of the Manager 76 82 NetworkStream* defaultSyncStream; //!< default synchronize NetworkStream 83 NetworkMonitor* networkMonitor; //!< reference to the NetworkMonitor 77 84 78 85 static SharedNetworkData* singletonRef; //!< Pointer to the only instance of this Class
Note: See TracChangeset
for help on using the changeset viewer.