Changeset 9656 in orxonox.OLD for trunk/src/lib/network/network_stream.h
- Timestamp:
- Aug 4, 2006, 11:01:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/network_stream.h
r9494 r9656 41 41 void init(); 42 42 43 /* network interface controls */ 43 44 void connectToMasterServer(std::string host, int port); 44 45 void connectToProxyServer(int proxyId, std::string host, int port); 45 void createServer(int clientPort, int proxyPort );46 void createServer(int clientPort, int proxyPort, int clientSoftPort); 46 47 47 48 void createNetworkGameManager(); 48 49 void startHandshake(int userId = NET_ID_MASTER_SERVER); 50 51 void reconnectToServer(IP address); 52 void softReconnectToServer(int serverUserId, IP address); 53 void prepareSoftConnection(int userId); 54 49 55 50 56 /* synchronizeable interface */ … … 70 76 inline PeerInfo* getPeerInfo() { return this->pInfo; } 71 77 inline PeerList getPeerInfoList() { return this->peers; } 78 79 inline void setRedirectionTest() { this->bSoftRedirect = true; } 72 80 73 81 /* data processing*/ … … 96 104 97 105 void handleConnect( int userId); 106 void handleSoftConnect( int userId); 98 107 void handleReconnect( int userId ); 99 108 void handleDisconnect( int userId ); 109 void handleSoftDisconnect( int userId); 100 110 101 111 void writeToNewDict( byte * data, int length, bool upstream ); … … 112 122 NetworkMonitor* networkMonitor; //!< the network monitor 113 123 NetworkGameManager* networkGameManager; //!< reference to the network game manager 114 ServerSocket* clientSocket; //!< the listening socket of the server 124 ServerSocket* clientSocket; //!< the listening socket for clients of the server 125 ServerSocket* clientSoftSocket; //!< the listening socket for soft connections to the server 115 126 ServerSocket* proxySocket; //!< socket for proxy connections 116 127 … … 126 137 127 138 bool bRedirect; //!< true if the master server sent a redirect command 139 int redirectionUID; //!< uid of the redir host 140 bool bSoftRedirect; //!< tsting 128 141 }; 129 142 #endif /* _NETWORK_STREAM */
Note: See TracChangeset
for help on using the changeset viewer.