Changeset 9303 in orxonox.OLD for branches/proxy/src/lib/network
- Timestamp:
- Jul 17, 2006, 10:29:13 AM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/handshake.cc
r9300 r9303 130 130 continue; 131 131 } 132 else if( remoteState.nodeType == NET_PROXY_SERVER )132 else if( remoteState.nodeType == NET_PROXY_SERVER_ACTIVE) 133 133 { 134 134 continue; -
branches/proxy/src/lib/network/monitor/network_monitor.cc
r9301 r9303 60 60 PeerInfo* peer = new PeerInfo(); 61 61 peer->ip = *(*it); 62 peer->nodeType = NET_PROXY_SERVER ;62 peer->nodeType = NET_PROXY_SERVER_ACTIVE; 63 63 peer->userId = -1; 64 64 -
branches/proxy/src/lib/network/network_stream.cc
r9300 r9303 266 266 this->updateConnectionList(); 267 267 } 268 else if( this->pInfo->nodeType == NET_PROXY_SERVER )268 else if( this->pInfo->nodeType == NET_PROXY_SERVER_ACTIVE) 269 269 { 270 270 // execute everything the proxy server should do -
branches/proxy/src/lib/network/network_stream.h
r9290 r9303 49 49 /* functions for the localhost settings */ 50 50 inline bool isMasterServer() const { return (this->pInfo->nodeType == NET_MASTER_SERVER)? true:false; } 51 inline bool isProxyServer() const { return (this->pInfo->nodeType == NET_PROXY_SERVER )? true:false; }51 inline bool isProxyServer() const { return (this->pInfo->nodeType == NET_PROXY_SERVER_ACTIVE)? true:false; } 52 52 inline bool isClient() const { return (this->pInfo->nodeType == NET_CLIENT)? true:false; } 53 53 // inline bool isActive() const { return this->bActive; } -
branches/proxy/src/lib/network/peer_info.cc
r9286 r9303 58 58 case NET_CLIENT: 59 59 return std::string("client"); 60 case NET_PROXY_SERVER :60 case NET_PROXY_SERVER_ACTIVE: 61 61 return std::string("proxy server"); 62 62 case NET_MASTER_SERVER: -
branches/proxy/src/lib/network/peer_info.h
r9290 r9303 23 23 24 24 inline bool isMasterServer() { return this->nodeType == NET_MASTER_SERVER; } 25 inline bool isProxyServer() { return this->nodeType == NET_PROXY_SERVER ; }25 inline bool isProxyServer() { return this->nodeType == NET_PROXY_SERVER_ACTIVE; } 26 26 inline bool isClient() { return this->nodeType == NET_CLIENT; } 27 27 -
branches/proxy/src/lib/network/shared_network_data.h
r9257 r9303 31 31 inline bool isMasterServer() { return this->nodeType == NET_MASTER_SERVER; } 32 32 /** @returns true is this node is a proxy server */ 33 inline bool isProxyServer() { return this->nodeType == NET_PROXY_SERVER ; }33 inline bool isProxyServer() { return this->nodeType == NET_PROXY_SERVER_ACTIVE; } 34 34 /** @returns true is this node is a client*/ 35 35 inline bool isClient() { return this->nodeType == NET_CLIENT; }
Note: See TracChangeset
for help on using the changeset viewer.