Changeset 9285 in orxonox.OLD for branches/proxy/src/lib/network/network_stream.h
- Timestamp:
- Jul 14, 2006, 10:46:13 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.h
r9284 r9285 48 48 49 49 /* functions for the localhost settings */ 50 inline bool isMasterServer() const { return (this-> nodeType == NET_MASTER_SERVER)? true:false; }51 inline bool isProxyServer() const { return (this-> nodeType == NET_PROXY_SERVER)? true:false; }52 inline bool isClient() const { return (this-> nodeType == NET_CLIENT)? true:false; }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; } 52 inline bool isClient() const { return (this->pInfo->nodeType == NET_CLIENT)? true:false; } 53 53 // inline bool isActive() const { return this->bActive; } 54 54 inline int getMaxConnections(){ return MAX_CONNECTIONS; } … … 94 94 95 95 PeerInfo* pInfo; //!< the info about the local peer node (not in the PeerList) 96 int nodeType; //!< the type of this host (NET_CLIENT, NET_MASTER_SERVER,...)97 int myHostId; //!< the host id of the localhost98 96 99 97 std::list<int> freeSocketSlots; //!< list of free sockets (to ensure not to resycle sockets)
Note: See TracChangeset
for help on using the changeset viewer.