Changeset 9656 in orxonox.OLD for trunk/src/lib/network/network_manager.cc
- Timestamp:
- Aug 4, 2006, 11:01:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/network_manager.cc
r9494 r9656 31 31 #include "network_log.h" 32 32 #include "network_game_manager.h" 33 #include "proxy/proxy_control.h" 33 34 34 35 … … 37 38 38 39 SHELL_COMMAND(debug, NetworkManager, debug); 40 SHELL_COMMAND(redirTest, NetworkManager, setRedirectionTest); 41 39 42 40 43 … … 111 114 // create the network stream 112 115 this->networkStream = new NetworkStream(NET_MASTER_SERVER); 113 this->networkStream->createServer( port, port + 1 );116 this->networkStream->createServer( port, port + 1, port + 2); 114 117 115 118 // start the network game manager 116 119 this->networkStream->createNetworkGameManager(); 120 121 // init the proxy control center 122 ProxyControl::getInstance(); 117 123 118 124 PRINTF(0)("Created Network Master Server\n"); … … 138 144 139 145 // then start the server 140 this->networkStream->createServer( port, port +1); 141 146 this->networkStream->createServer( port, port + 1, port + 2); 142 147 143 148 // and to the other proxy servers also, this would be very nice if its works 144 145 146 // start the network game manager 147 //this->networkStream->createNetworkGameManager(); 148 149 /* put it here....*/ 150 151 // init the proxy control center 152 ProxyControl::getInstance(); 149 153 150 154 PRINTF(0)("Created Network Proxy Server\n"); … … 168 172 this->networkStream->connectToMasterServer( name, port); 169 173 174 170 175 // and start the handshake 171 176 this->networkStream->startHandshake(); 177 // create the proxy control 178 ProxyControl::getInstance(); 172 179 173 180 PRINTF(0)("Created Network Client\n"); 174 181 return 1; 182 } 183 184 185 /** 186 * reconnects this client to another server 187 * @param address new server address 188 */ 189 void NetworkManager::reconnectToServer(IP address) 190 { 191 PRINTF(0)("Rec. reconnection command\n"); 192 this->networkStream->reconnectToServer(address); 175 193 } 176 194 … … 216 234 PRINT(0)("===========================================\n"); 217 235 } 236 237 238 void NetworkManager::setRedirectionTest() 239 { 240 this->networkStream->setRedirectionTest(); 241 } 242
Note: See TracChangeset
for help on using the changeset viewer.