Changeset 9296 in orxonox.OLD for branches/proxy/src/lib/network
- Timestamp:
- Jul 14, 2006, 3:01:37 PM (18 years ago)
- Location:
- branches/proxy/src/lib/network
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/network/Makefile.am
r9293 r9296 25 25 player_stats.cc \ 26 26 udp_broadcast.cc \ 27 \ 28 proxy/proxy_settings.cc \ 27 29 \ 28 30 monitor/connection_monitor.cc \ … … 66 68 udp_broadcast.h \ 67 69 \ 70 proxy/proxy_settings.cc \ 71 \ 68 72 monitor/connection_monitor.h \ 69 73 monitor/network_monitor.h \ -
branches/proxy/src/lib/network/handshake.cc
r9295 r9296 47 47 registerVar( new SynchronizeableString( &localState.preferedNickName, &remoteState.preferedNickName, "preferedNickName", PERMISSION_ALL ) ); 48 48 registerVar( new SynchronizeableIP( &localState.proxy1, &remoteState.proxy1, "proxy server 1", PERMISSION_ALL ) ); 49 registerVar( new SynchronizeableIP( &localState.proxy2, &remoteState.proxy1, "proxy server 2", PERMISSION_ALL ) ); 49 50 50 51 // init the local state … … 59 60 localState.nodeType = nodeType; 60 61 localState.canDel = 0; 62 localState.redirectProxy = 0; 61 63 62 64 remoteState.completed = 0; … … 70 72 remoteState.nodeType = NET_CLIENT; 71 73 remoteState.canDel = 0; 74 remoteState.redirectProxy = 0; 72 75 73 76 // activate the synchronization process … … 75 78 PRINTF(0)("Handshake created clientId = %d\n", clientId); 76 79 } 80 77 81 78 82 /** … … 125 129 } 126 130 127 128 131 // cancel 129 132 if ( *it == candel_id ) -
branches/proxy/src/lib/network/handshake.h
r9295 r9296 31 31 std::string preferedNickName; //!< prefered nick name 32 32 33 int freeSlots; //!< true if there are still free slots on this server33 int redirectProxy; //!< true if the client should reconnect to a proxy server (either 1 or 2 ) 34 34 IPaddress proxy1; //!< ip address of the first proxy (0.0.0.0 of not available) 35 35 IPaddress proxy2; //!< ip address of the second proxy (0.0.0.0 of not available) … … 73 73 inline std::string getPreferedNickName(){ return remoteState.preferedNickName; } 74 74 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 75 78 /** @param address: the address of the proxy server 1 if any */ 76 79 inline void setProxy1Address(IPaddress address) { this->localState.proxy1 = address; } -
branches/proxy/src/lib/network/monitor/network_monitor.h
r9295 r9296 56 56 inline bool gotFreeSlots() { return (this->localNode->getPlayerNumber() < NET_MAX_CONNECTIONS)?true:false; } 57 57 /** @param node node to be checked for slots @returns true if there are still free network slots available at this node */ 58 inline bool go rFreeSlots(NetworkNode* node) { return (node->getPlayerNumber() < NET_MAX_CONNECTIONS)?true:false; }58 inline bool gotFreeSlots(NetworkNode* node) { return (node->getPlayerNumber() < NET_MAX_CONNECTIONS)?true:false; } 59 59 void getServerWithFreeSlots() { } 60 60 -
branches/proxy/src/lib/network/network_stream.cc
r9291 r9296 191 191 192 192 hs->setPreferedNickName( Preferences::getInstance()->getString( "multiplayer", "nickname", "Player" ) ); 193 //hs->set 193 194 194 195 // peers[0].handshake->setSynchronized( true );
Note: See TracChangeset
for help on using the changeset viewer.