Changeset 9449 in orxonox.OLD for branches/proxy/src/lib/network/network_stream.cc
- Timestamp:
- Jul 25, 2006, 10:15:18 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/network_stream.cc
r9447 r9449 182 182 * @param port: the port number 183 183 */ 184 voidNetworkStream::connectToMasterServer(std::string host, int port)184 int NetworkStream::connectToMasterServer(std::string host, int port) 185 185 { 186 186 int node = this->peers.size(); … … 192 192 this->peers[node].connectionMonitor = new ConnectionMonitor( 0 ); 193 193 this->peers[node].ip = this->peers[node].socket->getRemoteAddress(); 194 195 return node; 194 196 } 195 197 … … 200 202 * @param port: the port number 201 203 */ 202 voidNetworkStream::connectToProxyServer(std::string host, int port)204 int NetworkStream::connectToProxyServer(std::string host, int port) 203 205 { 204 206 int node = this->peers.size(); … … 212 214 this->peers[node].connectionMonitor = new ConnectionMonitor( 0 ); 213 215 this->peers[node].ip = this->peers[node].socket->getRemoteAddress(); 216 217 return node; 214 218 } 215 219
Note: See TracChangeset
for help on using the changeset viewer.