Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 14, 2006, 10:32:02 AM (19 years ago)
Author:
patrick
Message:

peerinfos are now gettable from outside

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/network/network_stream.h

    r9282 r9284  
    6060    inline bool isUserClient( int userID ){ if ( !isUserIdActive(userID) ) return false; return peers[userID].isClient(); }
    6161
     62    /* peering interface */
     63    inline PeerInfo & getPeerInfo( int userId ) { return peers[userId]; }
     64    inline PeerInfo* getPeerInfo() { return this->pInfo; }
     65    inline PeerList getPeerInfoList() { return this->peers; }
    6266
     67    /* data processing*/
    6368    virtual void processData();
    6469
     70    /* debugging */
    6571    void debug();
    6672
     
    7076    inline SynchronizeableList::const_iterator getSyncBegin(){ return synchronizeables.begin(); }
    7177    inline SynchronizeableList::const_iterator getSyncEnd(){ return synchronizeables.end(); }
    72     inline PeerInfo & getPeerInfo( int userId ) { return peers[userId]; }
    7378    void cleanUpOldSyncList();
    7479    int getSyncCount();
     
    8893    PeerList                   peers;                       //!< list of the network node informations
    8994
     95    PeerInfo*                  pInfo;                       //!< the info about the local peer node (not in the PeerList)
    9096    int                        nodeType;                    //!< the type of this host (NET_CLIENT, NET_MASTER_SERVER,...)
    9197    int                        myHostId;                    //!< the host id of the localhost
Note: See TracChangeset for help on using the changeset viewer.