![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
Middleman between UDPProxyServer and UDPProxyClient, maintaining a list of UDPProxyServer, and managing state for clients to find an available forwarding server. More...
#include <UDPProxyCoordinator.h>
Inheritance diagram for RakNet::UDPProxyCoordinator:When NAT Punchthrough fails, it is possible to use a non-NAT system to forward messages from us to the recipient, and vice-versa The class to forward messages is UDPForwarder, and it is triggered over the network via the UDPProxyServer plugin. The UDPProxyClient connects to UDPProxyCoordinator to get a list of servers running UDPProxyServer, and the coordinator will relay our forwarding request
Definition at line 34 of file UDPProxyCoordinator.h.
| RakNet::UDPProxyCoordinator::UDPProxyCoordinator | ( | ) |
| virtual RakNet::UDPProxyCoordinator::~UDPProxyCoordinator | ( | ) | [virtual] |
| void RakNet::UDPProxyCoordinator::Clear | ( | void | ) | [protected] |
| static void RakNet::UDPProxyCoordinator::DestroyInstance | ( | UDPProxyCoordinator * | i | ) | [static] |
| static UDPProxyCoordinator* RakNet::UDPProxyCoordinator::GetInstance | ( | void | ) | [static] |
| virtual void RakNet::UDPProxyCoordinator::OnClosedConnection | ( | const SystemAddress & | systemAddress, |
| RakNetGUID | rakNetGUID, | ||
| PI2_LostConnectionReason | lostConnectionReason | ||
| ) | [virtual] |
Called when a connection is dropped because the user called RakPeer::CloseConnection() for a particular system
| [in] | systemAddress | The system whose connection was closed |
| [in] | rakNetGuid | The guid of the specified system |
| [in] | lostConnectionReason | How the connection was closed: manually, connection lost, or notification of disconnection |
Reimplemented from RakNet::PluginInterface2.
| void RakNet::UDPProxyCoordinator::OnForwardingReplyFromServerToCoordinator | ( | Packet * | packet | ) | [protected] |
| void RakNet::UDPProxyCoordinator::OnForwardingRequestFromClientToCoordinator | ( | Packet * | packet | ) | [protected] |
| void RakNet::UDPProxyCoordinator::OnLoginRequestFromServerToCoordinator | ( | Packet * | packet | ) | [protected] |
| void RakNet::UDPProxyCoordinator::OnPingServersReplyFromClientToCoordinator | ( | Packet * | packet | ) | [protected] |
| virtual PluginReceiveResult RakNet::UDPProxyCoordinator::OnReceive | ( | Packet * | packet | ) | [virtual] |
OnReceive is called for every packet.
| [in] | packet | the packet that is being returned to the user |
Reimplemented from RakNet::PluginInterface2.
| void RakNet::UDPProxyCoordinator::SendAllBusy | ( | SystemAddress | senderClientAddress, |
| SystemAddress | targetClientAddress, | ||
| SystemAddress | requestingAddress | ||
| ) | [protected] |
| void RakNet::UDPProxyCoordinator::SendForwardingRequest | ( | SystemAddress | sourceAddress, |
| SystemAddress | targetAddress, | ||
| SystemAddress | serverAddress, | ||
| RakNet::TimeMS | timeoutOnNoDataMS | ||
| ) | [protected] |
| void RakNet::UDPProxyCoordinator::SetRemoteLoginPassword | ( | RakNet::RakString | password | ) |
For UDPProxyServers logging in remotely, they must pass a password to UDPProxyServer::LoginToCoordinator(). It must match the password set here. If no password is set, they cannot login remotely. By default, no password is set
| void RakNet::UDPProxyCoordinator::TryNextServer | ( | SenderAndTargetAddress | sata, |
| ForwardingRequest * | fw | ||
| ) | [protected] |
| virtual void RakNet::UDPProxyCoordinator::Update | ( | void | ) | [virtual] |
Reimplemented from RakNet::PluginInterface2.
DataStructures::Multilist<ML_ORDERED_LIST, ForwardingRequest*, SenderAndTargetAddress> RakNet::UDPProxyCoordinator::forwardingRequestList [protected] |
Definition at line 97 of file UDPProxyCoordinator.h.
Definition at line 99 of file UDPProxyCoordinator.h.
DataStructures::Multilist<ML_UNORDERED_LIST, SystemAddress> RakNet::UDPProxyCoordinator::serverList [protected] |
Definition at line 94 of file UDPProxyCoordinator.h.
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.