Changeset 1088 for code/branches/network/src/network/ClientConnection.cc
- Timestamp:
- Apr 17, 2008, 1:15:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/network/ClientConnection.cc
r1011 r1088 85 85 86 86 ENetPacket *ClientConnection::getPacket() { 87 ENetAddress address; 87 ENetAddress address; //sems that address is not needed 88 88 return getPacket(address); 89 89 } … … 160 160 case ENET_EVENT_TYPE_CONNECT: 161 161 case ENET_EVENT_TYPE_RECEIVE: 162 COUT(5) << "Cl.Con: receiver-Thread : got new packet" << std::endl;163 processData(&event);162 COUT(5) << "Cl.Con: receiver-Thread while loop: got new packet" << std::endl; 163 if ( !processData(&event) ) COUT(2) << "Current packet was not pushed to packetBuffer -> ev ongoing SegFault" << std::endl; 164 164 break; 165 165 case ENET_EVENT_TYPE_DISCONNECT: … … 201 201 bool ClientConnection::establishConnection() { 202 202 ENetEvent event; 203 // connect to peer 203 // connect to peer (server is type ENetPeer*) 204 204 server = enet_host_connect(client, &serverAddress, NETWORK_CLIENT_CHANNELS); 205 205 if(server==NULL)
Note: See TracChangeset
for help on using the changeset viewer.