Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 31, 2007, 7:40:23 PM (16 years ago)
Author:
rgrieder
Message:
  • added dll support to the network library
  • improved header file dependency in network
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/network/ConnectionManager.h

    r774 r777  
    1313#define _ConnectionManager_H__
    1414
    15 #include <iostream>
    1615#include <string>
    1716// enet library for networking support
    1817#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"
    2420#include "PacketBuffer.h"
    2521#include "PacketManager.h"
    26 #include "core/CoreIncludes.h"
    2722
    28 namespace std{
     23namespace std
     24{
    2925  bool operator<(ENetAddress a, ENetAddress b);
    3026}
    3127
    32 namespace network{
    33   //
     28namespace network
     29{
    3430#define NETWORK_PORT 55556
    3531#define NETWORK_MAX_CONNECTIONS 50
     
    4238    ClientList *next;
    4339  };
    44  
     40
    4541  class ConnectionManager{
    46     public:
     42  public:
    4743    ConnectionManager(ClientInformation *head);
    4844    ConnectionManager(int port, const char *address, ClientInformation *head);
     
    7167    PacketBuffer buffer;
    7268    PacketGenerator packet_gen;
    73    
     69
    7470    ENetHost *server;
    7571    ENetAddress bindAddress;
    76    
     72
    7773    bool quit; // quit-variable (communication with threads)
    7874    ClientInformation *head_;
Note: See TracChangeset for help on using the changeset viewer.