Changeset 777 for code/branches/FICN/src/network/ClientConnection.h
- Timestamp:
- Dec 31, 2007, 7:40:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/ClientConnection.h
r673 r777 13 13 #define _ClientConnection_H__ 14 14 15 #include <iostream>16 15 #include <string> 17 // enet library for networking support18 16 #include <enet/enet.h> 19 // boost.thread library for multithreading support 20 #include <boost/thread/thread.hpp> 21 #include <boost/bind.hpp> 22 // headerfile 23 #include "ClientConnection.h" 17 18 #include "NetworkPrereqs.h" 24 19 #include "PacketBuffer.h" 25 20 26 namespace network{ 27 // 21 namespace network 22 { 23 28 24 #define NETWORK_PORT 55556 29 25 #define NETWORK_CLIENT_MAX_CONNECTIONS 5 … … 34 30 35 31 class ClientConnection{ 36 32 public: 37 33 ClientConnection(int port, std::string address); 38 34 ClientConnection(int port, const char* address); … … 51 47 bool sendPackets(ENetEvent *event); 52 48 bool waitEstablished(int milisec); 53 49 private: 54 50 bool processData(ENetEvent *event); 55 51 // implementation of the listener
Note: See TracChangeset
for help on using the changeset viewer.