Changeset 9269 in orxonox.OLD for branches/proxy/src/lib/network/handshake.h
- Timestamp:
- Jul 13, 2006, 2:00:20 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/handshake.h
r9268 r9269 43 43 /** @returns true if no error has occured until now */ 44 44 inline bool ok(){ return localState.error == 0 && remoteState.error == 0; } 45 /** stops the handshake and reject the other side with @param reason: string describing the reason */ 45 46 inline void doReject( std::string reason ){ localState.error = 1; localState.errorString = "the server rejected your connection ["+ reason +"]"; } 46 47 /** @returns true if the handshake is finished and the instances can be deleted */ … … 58 59 /** @returns the unique id of the message manager */ 59 60 inline int getMessageManagerId(){ return remoteState.messageManagerId; } 60 /** stops the handshake and reject the other side with @param reason: string describing the reason */ 61 /** @returns the node type of the remote host */ 62 inline int getRemoteNodeType() { return this->remoteState.nodeType; } 61 63 62 64 /** sets @param nick the prefereded nick name */
Note: See TracChangeset
for help on using the changeset viewer.