Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7591 in orxonox.OLD for branches/network/src/lib/network/handshake.h


Ignore:
Timestamp:
May 11, 2006, 8:05:17 AM (18 years ago)
Author:
rennerc
Message:

fixed some bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/handshake.h

    r7565 r7591  
    3434    inline bool       completed(){ return localState.completed != 0 && remoteState.completed != 0; }
    3535    inline bool       ok(){ return localState.error == 0 && remoteState.error == 0; }
    36     inline int        getHostId(){ return localState.hostId; }
    37     inline int        getNetworkGameManagerId(){ return localState.networkManagerId; }
    38     inline void       doReject( std::string reason ){ remoteState.error = 1; remoteState.errorString = "the server rejected your connection ["+ reason +"]"; }
     36    inline int        getHostId(){ return remoteState.hostId; }
     37    inline int        getNetworkGameManagerId(){ return remoteState.networkManagerId; }
     38    inline void       doReject( std::string reason ){ localState.error = 1; localState.errorString = "the server rejected your connection ["+ reason +"]"; }
    3939   
    4040    virtual void varChangeHandler( std::list<int> & id );
Note: See TracChangeset for help on using the changeset viewer.