Changeset 1409 for code/branches/network/src/network/Client.cc
- Timestamp:
- May 24, 2008, 2:57:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/Client.cc
r1377 r1409 120 120 isConnected=client_connection.createConnection(); 121 121 if(isConnected){ 122 COUT(3) << "sending connectrequest" << std::endl;123 if(!client_connection.addPacket(pck_gen.generateConnectRequest()) || !client_connection.sendPackets())124 COUT(1) << "could not send connection request !!!!!!!!!" << std::endl;122 // COUT(3) << "sending connectrequest" << std::endl; 123 // if(!client_connection.addPacket(pck_gen.generateConnectRequest()) || !client_connection.sendPackets()) 124 // COUT(1) << "could not send connection request !!!!!!!!!" << std::endl; 125 125 }else 126 126 COUT(1) << "could not create connection laber" << std::endl; … … 239 239 } 240 240 } 241 ENet Packet *packet;241 ENetEvent *event; 242 242 // stop if the packet queue is empty 243 243 while(!(client_connection.queueEmpty())){ 244 packet = client_connection.getPacket();245 COUT(5) << "tick packet size " << packet->dataLength << std::endl;246 elaborate( packet, 0); // ================= i guess we got to change this .... (client_ID is always same = server)244 event = client_connection.getEvent(); 245 COUT(5) << "tick packet size " << event->packet->dataLength << std::endl; 246 elaborate(event->packet, 0); // ================= i guess we got to change this .... (client_ID is always same = server) 247 247 } 248 248 if(!client_connection.sendPackets())
Note: See TracChangeset
for help on using the changeset viewer.