Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9246 in orxonox.OLD for trunk/src/lib/network/network_stream.h


Ignore:
Timestamp:
Jul 11, 2006, 7:50:12 PM (18 years ago)
Author:
patrick
Message:

some network comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/network/network_stream.h

    r8623 r9246  
    2222class NetworkGameManager;
    2323
     24//!< this structure contains informations about the network node
    2425class PeerInfo
    2526{
     
    2728    PeerInfo() { clear(); }
    2829    void clear() { userId = 0; isServer = false; socket = NULL; handshake = NULL; lastAckedState = 0; lastRecvedState = 0; connectionMonitor = NULL; }
     30
     31
     32  public:
    2933    int                 userId;
    3034    bool                isServer;
     
    7276
    7377    void debug();
    74    
     78
    7579    inline PeerInfo & getPeerInfo( int userId ) { return peers[userId]; }
    7680
     
    8084    void handleHandshakes();
    8185    void handleUpstream( int tick );
    82     void handleDownstream(int tick ); 
     86    void handleDownstream(int tick );
    8387    void handleNewClient( int userId );
    8488    void cleanUpOldSyncList();
    85    
     89
    8690    void writeToNewDict( byte * data, int length, bool upstream );
    8791
     
    96100
    97101    int                        myHostId;
    98    
     102
    99103    int                        currentState;                //!< current state id
    100104
     
    102106
    103107    std::map<int,int>          oldSynchronizeables;         //!< used to save recently deleted sync ids to not recreate them
    104    
     108
    105109    byte                       buf[UDP_PACKET_SIZE];        //!< used by handleUp/Downstream
    106110    byte                       compBuf[UDP_PACKET_SIZE];    //!< used by handleUp/Downstream
Note: See TracChangeset for help on using the changeset viewer.