Changeset 9284 in orxonox.OLD for branches/proxy/src/lib/network/monitor
- Timestamp:
- Jul 14, 2006, 10:32:02 AM (19 years ago)
- Location:
- branches/proxy/src/lib/network/monitor
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_monitor.cc
r9283 r9284 40 40 this->networkStream = networkStream; 41 41 this->playerNumber = 0; 42 this->localNode = new NetworkNode( );42 this->localNode = new NetworkNode( this->networkStream->getPeerInfo()); 43 43 44 44 this->setSynchronized(false); -
branches/proxy/src/lib/network/monitor/network_node.cc
r9277 r9284 16 16 #include "network_node.h" 17 17 18 19 18 #include "debug.h" 20 19 … … 23 22 * constructor 24 23 */ 25 NetworkNode::NetworkNode( )24 NetworkNode::NetworkNode(PeerInfo* pInfo) 26 25 { 27 26 this->playerNumber = 0; 28 this-> nodeType = NET_CLIENT;27 this->peerInfo = pInfo; 29 28 } 30 29 -
branches/proxy/src/lib/network/monitor/network_node.h
r9279 r9284 9 9 #include "base_object.h" 10 10 #include "synchronizeable.h" 11 #include "peer_info.h" 11 12 12 13 #include <list> 13 14 14 class PeerInfo;15 15 16 16 //!< a class representing a node in the network (this can be a MASTER_SERVER, PROXY_SERVER or a CLIENT … … 18 18 { 19 19 public: 20 NetworkNode( );20 NetworkNode(PeerInfo* pInfo); 21 21 ~NetworkNode(); 22 22 … … 33 33 inline int getPlayerNumber() { return this->playerNumber; } 34 34 /** @returns the node type of this node */ 35 inline int getNodeType() { return this-> nodeType; }35 inline int getNodeType() { return this->peerInfo->nodeType; } 36 36 37 37 38 38 private: 39 int nodeType; //!< the type of the node40 39 int playerNumber; //!< localy direct connected player number 40 PeerInfo* peerInfo; //!< the peer informationa about this node 41 41 42 42 /* network nodes directly connected to this node */
Note: See TracChangeset
for help on using the changeset viewer.