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/ClientConnection.h

    r673 r777  
    1313#define _ClientConnection_H__
    1414
    15 #include <iostream>
    1615#include <string>
    17 // enet library for networking support
    1816#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"
    2419#include "PacketBuffer.h"
    2520
    26 namespace network{
    27   //
     21namespace network
     22{
     23
    2824#define NETWORK_PORT 55556
    2925#define NETWORK_CLIENT_MAX_CONNECTIONS 5
     
    3430
    3531  class ClientConnection{
    36     public:
     32  public:
    3733    ClientConnection(int port, std::string address);
    3834    ClientConnection(int port, const char* address);
     
    5147    bool sendPackets(ENetEvent *event);
    5248    bool waitEstablished(int milisec);
    53     private:
     49  private:
    5450    bool processData(ENetEvent *event);
    5551    // implementation of the listener
Note: See TracChangeset for help on using the changeset viewer.