#include <NatTypeDetectionServer.h>

Public Member Functions | |
| void | Startup (const char *nonRakNetIP2, const char *nonRakNetIP3, const char *nonRakNetIP4) |
| virtual void | Update (void) |
| Update is called every time a packet is checked for . | |
| virtual PluginReceiveResult | OnReceive (Packet *packet) |
| virtual void | OnClosedConnection (SystemAddress systemAddress, RakNetGUID rakNetGUID, PI2_LostConnectionReason lostConnectionReason) |
Sends to a remote system on certain ports and addresses to determine what type of router, if any, that client is behind Requires that the server have 4 external IP addresses
| virtual void RakNet::NatTypeDetectionServer::OnClosedConnection | ( | 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 PluginInterface2.
| virtual PluginReceiveResult RakNet::NatTypeDetectionServer::OnReceive | ( | Packet * | packet | ) | [virtual] |
OnReceive is called for every packet.
| [in] | packet | the packet that is being returned to the user |
Reimplemented from PluginInterface2.
| void RakNet::NatTypeDetectionServer::Startup | ( | const char * | nonRakNetIP2, | |
| const char * | nonRakNetIP3, | |||
| const char * | nonRakNetIP4 | |||
| ) |
Start the system, binding to 3 external IPs not already in useS
| [in] | nonRakNetIP2 | First unused external IP |
| [in] | nonRakNetIP3 | Second unused external IP |
| [in] | nonRakNetIP4 | Third unused external IP |
1.5.7.1