- Timestamp:
- Dec 19, 2010, 2:27:06 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network5/src/libraries/network/Connection.h
r7774 r7777 84 84 void addPacket(ENetPacket *packet, ENetPeer *peer, uint8_t channelID); 85 85 void broadcastPacket(ENetPacket* packet, uint8_t channelID); 86 ENetHost* getHost(){ return this->host_; }86 // ENetHost* getHost(){ return this->host_; } 87 87 88 88 protected: … … 101 101 virtual void addPeer(ENetEvent* event)=0; 102 102 virtual void removePeer(ENetEvent* event)=0; 103 virtual bool processPacket(ENetEvent* event); 103 virtual void processPacket( packet::Packet* packet)=0; 104 virtual packet::Packet* createPacket(ENetEvent* event); 104 105 105 106 ENetHost* host_; 106 boost::mutex* incomingEventsMutex_;107 boost::mutex* outgoingEventsMutex_;108 107 private: 109 108 boost::thread* communicationThread_; … … 112 111 std::deque<ENetEvent> incomingEvents_; 113 112 std::deque<outgoingEvent> outgoingEvents_; 113 boost::mutex* incomingEventsMutex_; 114 boost::mutex* outgoingEventsMutex_; 114 115 115 116 // static Connection *instance_;
Note: See TracChangeset
for help on using the changeset viewer.