Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2010, 2:27:06 PM (15 years ago)
Author:
scheusso
Message:

some () structural changes
some functional changes (GamestateClient replaced through GamestateManager on client)
reliable packets get buffered until a recent gamestate arrived and got processed

File:
1 edited

Legend:

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

    r7774 r7777  
    8484    void addPacket(ENetPacket *packet, ENetPeer *peer, uint8_t channelID);
    8585    void broadcastPacket(ENetPacket* packet, uint8_t channelID);
    86     ENetHost* getHost(){ return this->host_; }
     86//     ENetHost* getHost(){ return this->host_; }
    8787
    8888  protected:
     
    101101    virtual void addPeer(ENetEvent* event)=0;
    102102    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);
    104105
    105106    ENetHost*                   host_;
    106     boost::mutex*               incomingEventsMutex_;
    107     boost::mutex*               outgoingEventsMutex_;
    108107  private:
    109108    boost::thread*              communicationThread_;
     
    112111    std::deque<ENetEvent>       incomingEvents_;
    113112    std::deque<outgoingEvent>   outgoingEvents_;
     113    boost::mutex*               incomingEventsMutex_;
     114    boost::mutex*               outgoingEventsMutex_;
    114115
    115116//     static Connection *instance_;
Note: See TracChangeset for help on using the changeset viewer.