Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 13, 2011, 9:34:22 PM (13 years ago)
Author:
scheusso
Message:

-some cleaning up
-fixing disconnect behaviour
-trying to find a bug

File:
1 edited

Legend:

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

    r7825 r7878  
    118118
    119119    void processQueue();
     120    void waitOutgoingQueue();     // wait for the outgoing queue to become empty (everything processed by communication thread)
    120121    virtual void addPeer(uint32_t peerID)=0;
    121122    virtual void removePeer(uint32_t peerID)=0;
     
    128129    void processIncomingEvent(ENetEvent& event);
    129130    void processOutgoingEvent(outgoingEvent& event);
     131   
     132    void disconnectPeersInternal();
    130133
    131134    ENetHost*                     host_;
     
    140143    boost::mutex*                 incomingEventsMutex_;
    141144    boost::mutex*                 outgoingEventsMutex_;
     145    boost::mutex*                 overallMutex_;
    142146    std::map<uint32_t, ENetPeer*> peerMap_;
    143147    std::map<ENetPeer*, uint32_t> peerIDMap_;
    144148    uint32_t                      nextPeerID_;
    145 
    146 //     static Connection *instance_;
    147149
    148150  };
Note: See TracChangeset for help on using the changeset viewer.