Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jul 19, 2006, 10:29:14 PM (18 years ago)
Author:
patrick
Message:

work of the day in one commit:D

  • switched whole network framework to ip sturcture
  • extended ip structrue a little bit
  • reimplemented the disconnection/reconnection algorithm
  • synchronizeable ip bug discovered and solved
File:
1 edited

Legend:

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

    r9300 r9334  
    99
    1010#include "base_object.h"
     11#include "ip.h"
    1112#include "synchronizeable.h"
    1213
     
    3334
    3435  int           redirectProxy;                 //!< true if the client should reconnect to a proxy server (either 1 or 2 )
    35   IPaddress     proxy1;                        //!< ip address of the first proxy (0.0.0.0 of not available)
    36   IPaddress     proxy2;                        //!< ip address of the second proxy (0.0.0.0 of not available)
     36  IP            proxy1;                        //!< ip address of the first proxy (0.0.0.0 of not available)
     37  IP            proxy2;                        //!< ip address of the second proxy (0.0.0.0 of not available)
    3738};
    3839
     
    8283
    8384    /** @param address: the address of the proxy server 1 if any */
    84     inline void setProxy1Address(IPaddress address) { this->localState.proxy1 = address; }
     85    inline void setProxy1Address(IP address) { this->localState.proxy1 = address; }
    8586    /** @returns the address of the proxy server 1 if any */
    86     inline IPaddress getProxy1Address() { return this->localState.proxy1; }
     87    inline IP getProxy1Address() { return this->localState.proxy1; }
    8788    /** @param address: the address of the proxy server 2 if any */
    88     inline void setProxy2Address(IPaddress address) { this->localState.proxy2 = address; }
     89    inline void setProxy2Address(IP address) { this->localState.proxy2 = address; }
    8990    /** @returns the address of the proxy server 2 if any */
    90     inline IPaddress getProxy2Address() { return this->localState.proxy2; }
     91    inline IP getProxy2Address() { return this->localState.proxy2; }
    9192
    9293
Note: See TracChangeset for help on using the changeset viewer.