Changeset 7772 for code/branches/network5/src/libraries/network/Host.h
- Timestamp:
- Dec 17, 2010, 10:41:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network5/src/libraries/network/Host.h
r7284 r7772 54 54 //virtual bool processChat(packet::Chat *message, unsigned int clientID)=0; 55 55 //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; 57 57 virtual bool chat(const std::string& message)=0; 58 58 virtual bool broadcast(const std::string& message)=0; … … 71 71 // static Host* getInstance(){ return instance_; } 72 72 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); 74 74 //static bool chat(std::string& message); 75 75 // static bool receiveChat(packet::Chat *message, unsigned int clientID);
Note: See TracChangeset
for help on using the changeset viewer.