Changeset 352
- Timestamp:
- Nov 29, 2007, 5:32:20 PM (17 years ago)
- Location:
- code/branches/FICN/src/network
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/ClientConnection.cc
r346 r352 123 123 switch(event.type){ 124 124 // log handling ================ 125 case ENET_EVENT_TYPE_CONNECT: 125 126 case ENET_EVENT_TYPE_RECEIVE: 126 127 processData(&event); … … 130 131 // extend ===================== 131 132 break; 133 case ENET_EVENT_TYPE_NONE: 134 continue; 132 135 } 133 136 } … … 147 150 switch (event.type) 148 151 { 152 case ENET_EVENT_TYPE_NONE: 153 case ENET_EVENT_TYPE_CONNECT: 149 154 case ENET_EVENT_TYPE_RECEIVE: 150 155 enet_packet_destroy(event.packet); … … 155 160 } 156 161 enet_peer_reset(server); 162 return false; 157 163 } 158 164 -
code/branches/FICN/src/network/ConnectionManager.cc
r337 r352 65 65 66 66 bool ConnectionManager::addPacket(ENetPacket *packet, ENetPeer *peer){ 67 if(client= NULL)67 if(client==NULL) 68 68 return false; 69 69 ClientList *temp=client; … … 138 138 // add some error/log handling here 139 139 clientDisconnect(event.peer); 140 break; 141 case ENET_EVENT_TYPE_NONE: 140 142 break; 141 143 } -
code/branches/FICN/src/network/dummyserver.cc
r346 r352 22 22 bool quit=false; 23 23 ENetPacket *packet; 24 ENetEvent event;25 24 server.createListener(); 26 25
Note: See TracChangeset
for help on using the changeset viewer.