Public Member Functions | Public Attributes

PunchthroughConfiguration Struct Reference
[NatPunchthrough]

#include <NatPunchthroughClient.h>

List of all members.

Public Member Functions

 PunchthroughConfiguration ()

Public Attributes

RakNetTimeMS TIME_BETWEEN_PUNCH_ATTEMPTS_INTERNAL
 How much time between each UDP send.
RakNetTimeMS TIME_BETWEEN_PUNCH_ATTEMPTS_EXTERNAL
int UDP_SENDS_PER_PORT_INTERNAL
 How many tries for one port before giving up and going to the next port.
int UDP_SENDS_PER_PORT_EXTERNAL
int INTERNAL_IP_WAIT_AFTER_ATTEMPTS
 After giving up on one internal port, how long to wait before trying the next port.
int MAX_PREDICTIVE_PORT_RANGE
 How many external ports to try past the last known starting port.
int EXTERNAL_IP_WAIT_BETWEEN_PORTS
 After giving up on one external port, how long to wait before trying the next port.
int EXTERNAL_IP_WAIT_AFTER_ALL_ATTEMPTS
 After trying all external ports, how long to wait before returning ID_NAT_PUNCHTHROUGH_FAILED.
int MAXIMUM_NUMBER_OF_INTERNAL_IDS_TO_CHECK
bool retryOnFailure

Detailed Description

Definition at line 38 of file NatPunchthroughClient.h.


Constructor & Destructor Documentation

PunchthroughConfiguration::PunchthroughConfiguration (  )  [inline]

internal: (15 ms * 2 tries + 30 wait) * 5 ports * 8 players = 2.4 seconds external: (50 ms * 8 sends + 100 wait) * 2 port * 8 players = 8 seconds Total: 8 seconds

set to 0 to not do lan connects

Definition at line 43 of file NatPunchthroughClient.h.


Member Data Documentation

After trying all external ports, how long to wait before returning ID_NAT_PUNCHTHROUGH_FAILED.

Definition at line 74 of file NatPunchthroughClient.h.

After giving up on one external port, how long to wait before trying the next port.

Definition at line 71 of file NatPunchthroughClient.h.

After giving up on one internal port, how long to wait before trying the next port.

Definition at line 65 of file NatPunchthroughClient.h.

How many external ports to try past the last known starting port.

Definition at line 68 of file NatPunchthroughClient.h.

Maximum number of internal IP address to try to connect to. Cannot be greater than MAXIMUM_NUMBER_OF_INTERNAL_IDS Should be high enough to try all internal IP addresses on the majority of computers

Definition at line 79 of file NatPunchthroughClient.h.

If the first punchthrough attempt fails, try again This sometimes works because the remote router was looking for an incoming message on a higher numbered port before responding to a lower numbered port from the other system

Definition at line 83 of file NatPunchthroughClient.h.

Definition at line 58 of file NatPunchthroughClient.h.

How much time between each UDP send.

Definition at line 57 of file NatPunchthroughClient.h.

Definition at line 62 of file NatPunchthroughClient.h.

How many tries for one port before giving up and going to the next port.

Definition at line 61 of file NatPunchthroughClient.h.


The documentation for this struct was generated from the following file: