Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 5, 2008, 11:32:42 PM (16 years ago)
Author:
scheusso
Message:

we use enetcallback for destroying packets now (unfortunately there are still some problems)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/network/Host.h

    r1705 r1711  
    4242  private:
    4343    //TODO add theese functions or adequate
    44     virtual bool processChat(packet::Chat *message, unsigned int clientID)=0;
    45     virtual bool sendChat(packet::Chat *chat)=0;
     44    //virtual bool processChat(packet::Chat *message, unsigned int clientID)=0;
     45    //virtual bool sendChat(packet::Chat *chat)=0;
    4646    virtual bool queuePacket(ENetPacket *packet, int clientID)=0;
    4747    virtual unsigned int shipID()=0;
     
    5858    static bool running(){return instance_!=0;}
    5959    static bool addPacket(ENetPacket *packet, int clientID=0);
    60     static bool chat(std::string& message);
    61     static bool receiveChat(packet::Chat *message, unsigned int clientID);
     60    //static bool chat(std::string& message);
     61//     static bool receiveChat(packet::Chat *message, unsigned int clientID);
    6262    static int getPlayerID();
    6363    static unsigned int getShipID();
    64    
    65     // packet process functions
     64    static void setClientID(unsigned int id){ instance_->clientID_ = id; }
     65    static void setShipID(unsigned int id){ instance_->shipID_ = id; }
     66  private:
     67    unsigned int clientID_;
     68    unsigned int shipID_;
    6669};
    6770
Note: See TracChangeset for help on using the changeset viewer.