Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 13, 2006, 2:00:20 PM (18 years ago)
Author:
patrick
Message:

network node type handshake extension

File:
1 edited

Legend:

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

    r9268 r9269  
    4343    /** @returns true if no error has occured until now */
    4444    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 */
    4546    inline void doReject( std::string reason ){ localState.error = 1; localState.errorString = "the server rejected your connection ["+ reason +"]"; }
    4647    /** @returns true if the handshake is finished and the instances can be deleted */
     
    5859    /** @returns the unique id of the message manager */
    5960    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; }
    6163
    6264    /** sets @param nick the prefereded nick name */
Note: See TracChangeset for help on using the changeset viewer.