Changeset 1232 for code/branches/network3/src/network/Client.cc
- Timestamp:
- May 5, 2008, 1:19:22 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network3/src/network/Client.cc
r1199 r1232 40 40 41 41 #include "Client.h" 42 #include "Synchronisable.h" 42 43 #include "core/CoreIncludes.h" 43 44 … … 47 48 48 49 Client* Client::createSingleton(){ 49 if(!_sClient) 50 if(!_sClient){ 50 51 _sClient = new Client(); 52 } 51 53 return _sClient; 52 54 } … … 112 114 */ 113 115 bool Client::establishConnection(){ 116 Synchronisable::setClient(true); 114 117 isConnected=client_connection.createConnection(); 118 /*if(isConnected){ 119 COUT(2) << "sending connectrequest" << std::endl; 120 client_connection.addPacket(pck_gen.generateConnectRequest()); 121 client_connection.sendPackets(); 122 }else 123 COUT(2) << "could not create connection" << std::endl;*/ 115 124 return isConnected; 116 125 } … … 249 258 COUT(0) << "Server: " << data->message << std::endl; 250 259 } 260 261 bool Client::processWelcome( welcome *w ){ 262 COUT(4) << "processing welcome message" << std::endl; 263 clientID_ = w->clientID; 264 shipID_ = w->shipID; 265 266 } 251 267 252 268 }
Note: See TracChangeset
for help on using the changeset viewer.