Changeset 1502 for code/trunk/src/network/ClientConnection.h
- Timestamp:
- Jun 1, 2008, 3:54:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/ClientConnection.h
r1293 r1502 54 54 #define NETWORK_PORT 55556 55 55 #define NETWORK_CLIENT_MAX_CONNECTIONS 5 56 #define NETWORK_CLIENT_TIMEOUT 100 57 #define NETWORK_SEND_WAIT 5 56 #define NETWORK_CLIENT_TIMEOUT 1 58 57 #define NETWORK_CLIENT_CHANNELS 2 59 58 … … 63 62 ClientConnection(int port, std::string address); 64 63 ClientConnection(int port, const char* address); 65 ENetPacket *getPacket(ENetAddress &address); // thread1 66 ENetPacket *getPacket(); // thread1 64 //ENetPacket *getPacket(ENetAddress &address); // thread1 65 //ENetPacket *getPacket(); // thread1 66 ENetEvent *getEvent(); 67 67 // check wheter the packet queue is empty 68 68 bool queueEmpty(); … … 75 75 bool sendPackets(); 76 76 // send out all queued packets and save result in event 77 bool sendPackets(ENetEvent *event);77 //bool sendPackets(ENetEvent *event); 78 78 bool waitEstablished(int milisec); 79 79 bool isConnected(){return established;} … … 95 95 ENetPeer *server; 96 96 boost::thread *receiverThread_; 97 98 static boost::recursive_mutex enet_mutex_; 97 99 }; 98 100
Note: See TracChangeset
for help on using the changeset viewer.