Changeset 7591 in orxonox.OLD for branches/network/src/lib/network/handshake.h
- Timestamp:
- May 11, 2006, 8:05:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/lib/network/handshake.h
r7565 r7591 34 34 inline bool completed(){ return localState.completed != 0 && remoteState.completed != 0; } 35 35 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 +"]"; } 39 39 40 40 virtual void varChangeHandler( std::list<int> & id );
Note: See TracChangeset
for help on using the changeset viewer.