Changeset 6139 in orxonox.OLD for trunk/src/lib/network/network_manager.cc
- Timestamp:
- Dec 16, 2005, 6:45:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/network/network_manager.cc
r5997 r6139 50 50 this->tmpStream = NULL; 51 51 this->hostID = -1; 52 this->bGameServer = false; 52 53 53 54 PRINTF(0)("NetworkManager created\n"); … … 95 96 } 96 97 97 this->tmpStream = new NetworkStream(ipAddress , NET_CLIENT);98 this->tmpStream = new NetworkStream(ipAddress); 98 99 return 1; 99 100 } … … 106 107 int NetworkManager::createServer(unsigned int port) 107 108 { 108 this->tmpStream = new NetworkStream(port, NET_SERVER); 109 this->tmpStream = new NetworkStream(port); 110 this->bGameServer = true; 109 111 SDL_Delay(20); 110 112 return 1; … … 120 122 { 121 123 /* creating a new network stream, it will register itself automaticaly to the class list */ 122 this->tmpStream = new NetworkStream(address, sync, NET_CLIENT); 124 this->tmpStream = new NetworkStream(address); 125 this->tmpStream->connectSynchronizeable(sync); 123 126 } 124 127 … … 132 135 PRINTF(0)("Create a new server socket\n"); 133 136 /* creating a new network stream, it will register itself automaticaly to the class list */ 134 this->tmpStream = new NetworkStream(port, sync, NET_SERVER); 137 this->tmpStream = new NetworkStream(port); 138 this->tmpStream->connectSynchronizeable(sync); 139 this->bGameServer = true; 135 140 } 136 141
Note: See TracChangeset
for help on using the changeset viewer.