Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 14, 2006, 3:01:37 PM (18 years ago)
Author:
patrick
Message:

redirection flag added, proxy settings as a way to get/save the server settings

File:
1 edited

Legend:

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

    r9295 r9296  
    3131  std::string   preferedNickName;              //!< prefered nick name
    3232
    33   int           freeSlots;                     //!< true if there are still free slots on this server
     33  int           redirectProxy;                 //!< true if the client should reconnect to a proxy server (either 1 or 2 )
    3434  IPaddress     proxy1;                        //!< ip address of the first proxy (0.0.0.0 of not available)
    3535  IPaddress     proxy2;                        //!< ip address of the second proxy (0.0.0.0 of not available)
     
    7373    inline std::string getPreferedNickName(){ return remoteState.preferedNickName; }
    7474
     75    /** @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;}
     77
    7578    /** @param address: the address of the proxy server 1 if any */
    7679    inline void setProxy1Address(IPaddress address) { this->localState.proxy1 = address; }
Note: See TracChangeset for help on using the changeset viewer.