Changeset 2773 for code/trunk/src/network/ClientConnection.h
- Timestamp:
- Mar 11, 2009, 4:06:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/network/ClientConnection.h
r2756 r2773 44 44 45 45 #include <string> 46 #ifndef WIN32_LEAN_AND_MEAN47 # define WIN32_LEAN_AND_MEAN48 #endif49 #define NOMINMAX // required to stop windows.h screwing up std::min definition50 #include <enet/enet.h>51 #include <boost/thread/recursive_mutex.hpp>52 46 #include "PacketBuffer.h" 53 47 … … 84 78 bool isConnected(){return established;} 85 79 private: 80 ClientConnection(const ClientConnection& copy); // not used 86 81 bool processData(ENetEvent *event); 87 82 // implementation of the listener … … 93 88 // enet stuff 94 89 ENetHost *client; 95 ENetAddress serverAddress;90 ENetAddress *serverAddress; 96 91 // quit-variable (communication with threads) 97 92 bool quit; … … 100 95 ENetPeer *server; 101 96 boost::thread *receiverThread_; 102 103 static boost::recursive_mutex enet_mutex_; 104 }; 97 }; 105 98 106 99
Note: See TracChangeset
for help on using the changeset viewer.