Changeset 777 for code/branches/FICN/src/network/ConnectionManager.h
- Timestamp:
- Dec 31, 2007, 7:40:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/ConnectionManager.h
r774 r777 13 13 #define _ConnectionManager_H__ 14 14 15 #include <iostream>16 15 #include <string> 17 16 // enet library for networking support 18 17 #include <enet/enet.h> 19 // boost.thread library for multithreading support 20 #include <boost/thread/thread.hpp> 21 #include <boost/bind.hpp> 22 // headerfiles 23 #include "ClientInformation.h" 18 19 #include "NetworkPrereqs.h" 24 20 #include "PacketBuffer.h" 25 21 #include "PacketManager.h" 26 #include "core/CoreIncludes.h"27 22 28 namespace std{ 23 namespace std 24 { 29 25 bool operator<(ENetAddress a, ENetAddress b); 30 26 } 31 27 32 namespace network {33 // 28 namespace network 29 { 34 30 #define NETWORK_PORT 55556 35 31 #define NETWORK_MAX_CONNECTIONS 50 … … 42 38 ClientList *next; 43 39 }; 44 40 45 41 class ConnectionManager{ 46 42 public: 47 43 ConnectionManager(ClientInformation *head); 48 44 ConnectionManager(int port, const char *address, ClientInformation *head); … … 71 67 PacketBuffer buffer; 72 68 PacketGenerator packet_gen; 73 69 74 70 ENetHost *server; 75 71 ENetAddress bindAddress; 76 72 77 73 bool quit; // quit-variable (communication with threads) 78 74 ClientInformation *head_;
Note: See TracChangeset
for help on using the changeset viewer.