Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 17, 2006, 10:15:33 AM (18 years ago)
Author:
patrick
Message:

work from this weekend in the train :D

  • the ip should now synchronize over network in the handshake (always the favorite 2 proxy server ips)
  • the network monitor now keeps track of all network nodes answers with proxy server lists if asked/needed
  • it is untested :D
File:
1 edited

Legend:

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

    r9296 r9300  
    11/*!
    22 * @file network_stream.h
    3  *  implementation of a network pipe
     3 *  implementation of a network pipe. This node handles the handshake of two network nodes and exchanges informationas
     4 * vial to the connection setup.
    45 */
    56
     
    1011#include "synchronizeable.h"
    1112
    12 
     13//!< a struct to save the handshakes to
    1314struct HandshakeState
    1415{
     
    3637};
    3738
     39
     40//!< the handshake itself with some interface functions
    3841class Handshake : public Synchronizeable
    3942{
     
    7477
    7578    /** @returns if true the local client should reconnect to a proxy server from the proxy server list */
    76     inline bool redirect() { return this->remoteState.redirectProxy;}
     79    inline bool redirect() { return this->localState.redirectProxy;}
     80    /** @param flag: indicating if the client should be redirected */
     81    inline void setRedirect(bool flag) { this->remoteState.redirectProxy = flag; }
    7782
    7883    /** @param address: the address of the proxy server 1 if any */
Note: See TracChangeset for help on using the changeset viewer.