Changeset 381 for code/branches/FICN/src/network
- Timestamp:
- Dec 4, 2007, 10:00:43 PM (17 years ago)
- Location:
- code/branches/FICN/src/network
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/ConnectionManager.cc
r380 r381 12 12 #include "ConnectionManager.h" 13 13 14 namespace std{ 15 bool operator< (ENetAddress a, ENetAddress b){ 16 if(a.host <= b.host) 17 return true; 18 else 19 return false; 20 } 21 } 22 14 23 namespace network{ 15 24 16 25 boost::thread_group network_threads; 17 26 18 27 ConnectionManager::ConnectionManager(){ 19 28 quit=false; -
code/branches/FICN/src/network/ConnectionManager.h
r380 r381 26 26 #include "PacketBuffer.h" 27 27 28 namespace std{ 29 bool operator<(ENetAddress a, ENetAddress b); 30 } 31 28 32 namespace network{ 29 33 // … … 38 42 ClientList *next; 39 43 }; 40 44 41 45 class ConnectionManager{ 42 46 public: -
code/branches/FICN/src/network/Server.cc
r380 r381 100 100 void Server::processQueue(){ 101 101 ENetPacket *packet; 102 int clientID=-1; 102 103 while(!connection.queueEmpty()){ 103 packet = connection.getPacket( )104 packet = connection.getPacket(clientID); 104 105 } 105 106 }
Note: See TracChangeset
for help on using the changeset viewer.