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

    r673 r777  
    1616#include <string>
    1717
    18 #include "ConnectionManager.h"
    1918#include "PacketManager.h"
    20 #include "PacketTypes.h"
    21 #include "GameStateManager.h"
    22 #include "ClientInformation.h"
    23 //#include "enet/enet.h"
    24 //#include "NetworkFrameListener.h"
     19#include "NetworkPrereqs.h"
    2520
    26 
    27 namespace network{
    28 
    29  
     21namespace network
     22{
    3023  /**
    31    * This class is the root class of the network module for a server.
    32    * It implements all functions necessary for a Server
    33    */
    34   class Server : public PacketDecoder{
    35     public:
     24  * This class is the root class of the network module for a server.
     25  * It implements all functions necessary for a Server
     26  */
     27  class _NetworkExport Server : public PacketDecoder{
     28  public:
    3629    Server();
    3730    Server(int port, std::string bindAddress);
     
    4235    bool sendMSG(const char *msg);
    4336    void tick(float time);
    44     protected:
     37  protected:
    4538    void processQueue();
    4639    void updateGamestate();
    47     private:
     40  private:
    4841    bool sendGameState();
    4942    void processAck( ack *data, int clientID);
     
    5144    GameStateManager *gamestates;
    5245    PacketGenerator packet_gen;
    53    
     46
    5447    ClientInformation *clients;
    5548  };
    56  
     49
    5750
    5851
Note: See TracChangeset for help on using the changeset viewer.