Changeset 297 for code/branches/merger/src/network
- Timestamp:
- Nov 28, 2007, 1:34:27 AM (17 years ago)
- Location:
- code/branches/merger/src/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/merger/src/network/CMakeLists.txt
r295 r297 2 2 3 3 SET(SRC_FILES Client.cc ConnectionManager.cc PacketBuffer.cc PacketGenerator.cc Synchronisable.cc dummyclient2.cc ClientConnection.cc GameStateManager.cc PacketDecoder.cc Server.cc dummyclient.cc dummyserver.cc) 4 SET(INC_FILES Client.h ClientConnection.h ConnectionManager.h GameStateManager.h PacketBuffer.h PacketManager.h Server.h Synchronisable.h ${ENet_INCLUDE_DIR})4 SET(INC_FILES Client.h ClientConnection.h ConnectionManager.h GameStateManager.h PacketBuffer.h PacketManager.h Server.h Synchronisable.h) 5 5 6 6 ADD_LIBRARY(network ${SRC_FILES} ${INC_FILES}) -
code/branches/merger/src/network/ClientConnection.cc
r285 r297 132 132 bool ClientConnection::disconnectConnection(){ 133 133 ENetEvent event; 134 enet_peer_disconnect(server, 0); 134 enet_peer_disconnect(server); 135 //enet_peer_disconnect(server, 0); 135 136 while(enet_host_service(client, &event, NETWORK_WAIT_TIMEOUT) > 0){ 136 137 switch (event.type) -
code/branches/merger/src/network/dummyclient.cc
r285 r297 71 71 72 72 // now disconnect 73 enet_peer_disconnect (peer, 0); 73 enet_peer_disconnect (peer); 74 // enet_peer_disconnect (peer, 0); 74 75 // 3 seconds timeout 75 76 while(enet_host_service(client, &event, 3000) > 0){
Note: See TracChangeset
for help on using the changeset viewer.