Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Public Attributes
RakNet::PunchthroughConfiguration Struct Reference

#include <NatPunchthroughClient.h>

List of all members.

Public Member Functions

 PunchthroughConfiguration ()

Public Attributes

int EXTERNAL_IP_WAIT_AFTER_ALL_ATTEMPTS
 After trying all external ports, how long to wait before returning ID_NAT_PUNCHTHROUGH_FAILED.
int EXTERNAL_IP_WAIT_BETWEEN_PORTS
 After giving up on one external port, how long to wait before trying the next port.
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 MAXIMUM_NUMBER_OF_INTERNAL_IDS_TO_CHECK
bool retryOnFailure
RakNet::Time TIME_BETWEEN_PUNCH_ATTEMPTS_EXTERNAL
RakNet::Time TIME_BETWEEN_PUNCH_ATTEMPTS_INTERNAL
 How much time between each UDP send.
int UDP_SENDS_PER_PORT_EXTERNAL
int UDP_SENDS_PER_PORT_INTERNAL
 How many tries for one port before giving up and going to the next port.

Detailed Description

Definition at line 41 of file NatPunchthroughClient.h.


Constructor & Destructor Documentation

RakNet::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 46 of file NatPunchthroughClient.h.


Member Data Documentation

Definition at line 77 of file NatPunchthroughClient.h.

Definition at line 74 of file NatPunchthroughClient.h.

Definition at line 68 of file NatPunchthroughClient.h.

Definition at line 71 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 82 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 86 of file NatPunchthroughClient.h.

Definition at line 61 of file NatPunchthroughClient.h.

Definition at line 60 of file NatPunchthroughClient.h.

Definition at line 65 of file NatPunchthroughClient.h.

Definition at line 64 of file NatPunchthroughClient.h.


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net