Changeset 1377 for code/branches/network/src/network/Client.cc
- Timestamp:
- May 22, 2008, 4:23:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Client.cc
r1360 r1377 122 122 COUT(3) << "sending connectrequest" << std::endl; 123 123 if(!client_connection.addPacket(pck_gen.generateConnectRequest()) || !client_connection.sendPackets()) 124 COUT(1) << "could not create connection" << std::endl;124 COUT(1) << "could not send connection request !!!!!!!!!" << std::endl; 125 125 }else 126 COUT(1) << "could not create connection " << std::endl;126 COUT(1) << "could not create connection laber" << std::endl; 127 127 return isConnected; 128 128 } … … 216 216 if(!isConnected) 217 217 return false; 218 ENetEvent event; 219 // send packets 220 client_connection.sendPackets(&event); 221 if(event.type==ENET_EVENT_TYPE_NONE) 222 return true; 223 else 224 return false; 218 // send packets 219 client_connection.sendPackets(); 220 return true; 225 221 } 226 222
Note: See TracChangeset
for help on using the changeset viewer.