Changeset 9396 in orxonox.OLD for branches/proxy/src/lib/network/network_stream.h
- Timestamp:
- Jul 23, 2006, 10:07:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.h
r9347 r9396 36 36 public: 37 37 NetworkStream(); 38 NetworkStream( std::string host, int port);39 NetworkStream( int port);38 NetworkStream(int nodeType); 39 virtual ~NetworkStream(); 40 40 41 virtual ~NetworkStream();42 41 void init(); 42 43 void connectToMasterServer(std::string host, int port); 44 void connectToProxyServer(std::string host, int port); 45 void createServer(int port); 43 46 44 47 void createNetworkGameManager(); … … 49 52 void disconnectSynchronizeable(Synchronizeable& sync); 50 53 51 /* functions for the localhost settings */52 inline bool isMasterServer() const { return (this->pInfo->nodeType == NET_MASTER_SERVER)? true:false; }53 inline bool isProxyServer() const { return (this->pInfo->nodeType == NET_PROXY_SERVER_ACTIVE)? true:false; }54 inline bool isClient() const { return (this->pInfo->nodeType == NET_CLIENT)? true:false; }55 // inline bool isActive() const { return this->bActive; }56 54 inline int getMaxConnections(){ return SharedNetworkData::getInstance()->getMaxPlayer(); } 57 55
Note: See TracChangeset
for help on using the changeset viewer.