Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 23, 2009, 6:02:25 PM (15 years ago)
Author:
scheusso
Message:

merged netp5 back to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/network/Server.h

    r3084 r3214  
    3232#include "NetworkPrereqs.h"
    3333
    34 #include <string>
    35 
     34#include "core/CorePrereqs.h"
    3635#include "Host.h"
    37 #include "GamestateManager.h"
     36#include "ServerConnection.h"
    3837
    3938namespace orxonox
     
    4443  * It implements all functions necessary for a Server
    4544  */
    46   class _NetworkExport Server : public Host{
     45  class _NetworkExport Server : public Host, public ServerConnection{
    4746  public:
    4847    Server();
    4948    Server(int port);
    5049    Server(int port, const std::string& bindAddress);
    51     Server(int port, const char *bindAddress);
    5250    ~Server();
    5351
     
    6058    double getPacketLoss(unsigned int clientID);
    6159  protected:
    62     void processQueue();
    6360    void updateGamestate();
    6461  private:
     
    6764    unsigned int playerID(){return 0;}
    6865
    69     bool addClient(ENetEvent *event);
     66    void addClient(ENetEvent *event);
    7067    bool createClient(int clientID);
    71     bool disconnectClient(ENetEvent *event);
    72     void disconnectClient(int clientID);
    7368    void disconnectClient( ClientInformation *client);
    7469    bool processPacket( ENetPacket *packet, ENetPeer *peer );
     
    7873    virtual bool broadcast(const std::string& message);
    7974    bool sendChat(const std::string& message, unsigned int clientID);
     75    void syncClassid(unsigned int clientID);
    8076
    81     //void processChat( chat *data, int clientId);
    82     ConnectionManager *connection;
    8377    GamestateManager *gamestates_;
    8478
Note: See TracChangeset for help on using the changeset viewer.