Changeset 448 for code/branches/FICN/src/network/ClientConnection.cc
- Timestamp:
- Dec 9, 2007, 11:24:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/ClientConnection.cc
r369 r448 82 82 if(enet_peer_send(server, 1, packet)!=0) 83 83 return false; 84 else 85 return true; 84 return true; 86 85 } 87 86 … … 89 88 if(server==NULL) 90 89 return false; 91 if(enet_host_service(client, event, NETWORK_SEND_WAIT)>=0) 92 return true; 90 if(enet_host_service(client, event, NETWORK_SEND_WAIT)>=0){ 91 return true;} 93 92 else 94 93 return false; … … 99 98 if(server==NULL) 100 99 return false; 101 if(enet_host_service(client, &event, NETWORK_SEND_WAIT)>=0) 102 return true; 100 if(enet_host_service(client, &event, NETWORK_SEND_WAIT)>=0){ 101 return true;} 103 102 else 104 103 return false; … … 130 129 case ENET_EVENT_TYPE_CONNECT: 131 130 case ENET_EVENT_TYPE_RECEIVE: 131 std::cout << "got packet" << std::endl; 132 132 processData(&event); 133 133 break;
Note: See TracChangeset
for help on using the changeset viewer.