Changeset 9396 in orxonox.OLD for branches/proxy/src/lib/network/handshake.h
- Timestamp:
- Jul 23, 2006, 10:07:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/handshake.h
r9367 r9396 80 80 inline bool redirect() { return this->redirectProxy;} 81 81 /** @param flag: indicating if the client should be redirected */ 82 inline void setRedirect(bool flag) { this->redirectProxy = (int)flag; }82 inline void setRedirect(bool flag) { if( SharedNetworkData::getInstance()->isClient()) return; this->redirectProxy = (int)flag; } 83 83 84 84 /** @param address: the address of the proxy server 1 if any */ 85 inline void setProxy1Address(IP address) { if( !SharedNetworkData::getInstance()->isMasterServer()) return; this->proxy1 = address; }85 inline void setProxy1Address(IP address) { if( SharedNetworkData::getInstance()->isClient()) return; this->proxy1 = address; } 86 86 /** @returns the address of the proxy server 1 if any */ 87 87 inline IP getProxy1Address() { return this->proxy1; } 88 88 /** @param address: the address of the proxy server 2 if any */ 89 inline void setProxy2Address(IP address) { this->proxy2 = address; }89 inline void setProxy2Address(IP address) { if( SharedNetworkData::getInstance()->isClient()) return; this->proxy2 = address; } 90 90 /** @returns the address of the proxy server 2 if any */ 91 91 inline IP getProxy2Address() { return this->proxy2; }
Note: See TracChangeset
for help on using the changeset viewer.