Changeset 9279 in orxonox.OLD for branches/proxy/src/lib/network
- Timestamp:
- Jul 13, 2006, 11:01:04 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/monitor/network_monitor.cc
r9277 r9279 21 21 #include "network_monitor.h" 22 22 #include "network_node.h" 23 #include "network_stream.h" 23 24 24 25 … … 34 35 NetworkMonitor::NetworkMonitor(NetworkStream* networkStream) 35 36 { 37 this->networkStream = networkStream; 36 38 this->playerNumber = 0; 37 39 } … … 121 123 void NetworkMonitor::process() 122 124 { 125 std::list<NetworkNode*>::iterator it = this->nodeList.begin(); 126 for(; it != this->nodeList.end(); it++) 127 { 123 128 129 } 124 130 } 125 131 -
branches/proxy/src/lib/network/monitor/network_monitor.h
r9278 r9279 50 50 51 51 private: 52 NetworkStream* networkStream; //!< reference to the one networkstream of the network 52 53 std::list<NetworkNode*> nodeList; //!< list of all network nodes 53 54 -
branches/proxy/src/lib/network/monitor/network_node.h
r9277 r9279 30 30 void removeMasterServer(PeerInfo* node); 31 31 32 /** @returns the number of players */ 33 inline int getPlayerNumber() { return this->playerNumber; } 34 /** @returns the node type of this node */ 35 inline int getNodeType() { return this->nodeType; } 32 36 33 37 -
branches/proxy/src/lib/network/network_stream.cc
r9275 r9279 105 105 this->serverSocket = NULL; 106 106 this->networkGameManager = NULL; 107 this->networkMonitor = new NetworkMonitor(this); 108 107 109 this->myHostId = 0; 108 110 this->currentState = 0;
Note: See TracChangeset
for help on using the changeset viewer.