Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2010, 10:41:24 AM (15 years ago)
Author:
scheusso
Message:

network is now multithreaded again
further testing needed

File:
1 edited

Legend:

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

    r7284 r7772  
    5454    //virtual bool processChat(packet::Chat *message, unsigned int clientID)=0;
    5555    //virtual bool sendChat(packet::Chat *chat)=0;
    56     virtual bool queuePacket(ENetPacket *packet, int clientID)=0;
     56    virtual void queuePacket(ENetPacket *packet, int clientID, uint8_t channelID)=0;
    5757    virtual bool chat(const std::string& message)=0;
    5858    virtual bool broadcast(const std::string& message)=0;
     
    7171//     static Host* getInstance(){ return instance_; }
    7272    static bool running(){ return instances_s.size(); }
    73     static bool addPacket(ENetPacket *packet, int clientID=0);
     73    static void addPacket(ENetPacket* packet, int clientID = NETWORK_PEER_ID_SERVER, uint8_t channelID = 0);
    7474    //static bool chat(std::string& message);
    7575//     static bool receiveChat(packet::Chat *message, unsigned int clientID);
Note: See TracChangeset for help on using the changeset viewer.