![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <NatPunchthroughClient.h>
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. | |
Definition at line 41 of file NatPunchthroughClient.h.
| 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.
{
TIME_BETWEEN_PUNCH_ATTEMPTS_INTERNAL=15;
TIME_BETWEEN_PUNCH_ATTEMPTS_EXTERNAL=50;
UDP_SENDS_PER_PORT_INTERNAL=2;
UDP_SENDS_PER_PORT_EXTERNAL=8;
INTERNAL_IP_WAIT_AFTER_ATTEMPTS=30;
MAXIMUM_NUMBER_OF_INTERNAL_IDS_TO_CHECK=5;
MAX_PREDICTIVE_PORT_RANGE=2;
EXTERNAL_IP_WAIT_BETWEEN_PORTS=100;
EXTERNAL_IP_WAIT_AFTER_ALL_ATTEMPTS=EXTERNAL_IP_WAIT_BETWEEN_PORTS;
retryOnFailure=false;
}
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.
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.