Package org.activecomponents.udp
Class STunables
- java.lang.Object
-
- org.activecomponents.udp.STunables
-
public class STunables extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
FIN_VERIFICATION_LENGTH
Disconnect verification packet length in bytesstatic int
FINACK_MAX_PACKETS
Number of packets received waiting for FINACK confirmation nad how often to send them.static int
FINACK_RESEND_DELAY
Delay waiting for FINACK confirmation.static int
INITIAL_LATENCY
Initial assumed latency in ms.static int
KEEPALIVE_INTERVAL
Interval between keepalive packetsstatic int
KEEPALIVE_TIMEOUT
Timeout for Keepalive packets.static long
MAX_KEY_LIFETIME
Maximum number of bytes before renewing the communication key.static byte
MAX_KEY_RETENTION
Old keys retained after key renewal to catch stray packets.protected static int
MAX_MSG_PART_SIZE
Maximum size for message partsstatic int
MIN_LATENCY
Minimum assumed latency in ms.static double
MIN_LATENCY_RESEND_DELAY_FACTOR
Factor defining when an unconfirmed packet is resend in terms of measured roundtrip latency.protected static int
MISSING_PACKET_TIMEOUT
Timeout value for missing packets.static int
PROTOCOL_VERSION
Protocol version.static double
RND_LATENCY_RESEND_DELAY_FACTOR
Factor defining when an unconfirmed packet is resend in terms of measured roundtrip latency.static int
SYN_RESEND_DELAY
Delay between SYN resendsstatic int
SYN_RESEND_TRIES
SYN tries before giving up.
-
Constructor Summary
Constructors Constructor Description STunables()
-
-
-
Field Detail
-
PROTOCOL_VERSION
public static final int PROTOCOL_VERSION
Protocol version.- See Also:
- Constant Field Values
-
MISSING_PACKET_TIMEOUT
protected static final int MISSING_PACKET_TIMEOUT
Timeout value for missing packets.- See Also:
- Constant Field Values
-
MAX_MSG_PART_SIZE
protected static final int MAX_MSG_PART_SIZE
Maximum size for message parts- See Also:
- Constant Field Values
-
MIN_LATENCY
public static final int MIN_LATENCY
Minimum assumed latency in ms.- See Also:
- Constant Field Values
-
INITIAL_LATENCY
public static final int INITIAL_LATENCY
Initial assumed latency in ms.- See Also:
- Constant Field Values
-
MIN_LATENCY_RESEND_DELAY_FACTOR
public static final double MIN_LATENCY_RESEND_DELAY_FACTOR
Factor defining when an unconfirmed packet is resend in terms of measured roundtrip latency.- See Also:
- Constant Field Values
-
RND_LATENCY_RESEND_DELAY_FACTOR
public static final double RND_LATENCY_RESEND_DELAY_FACTOR
Factor defining when an unconfirmed packet is resend in terms of measured roundtrip latency.- See Also:
- Constant Field Values
-
FIN_VERIFICATION_LENGTH
public static final int FIN_VERIFICATION_LENGTH
Disconnect verification packet length in bytes- See Also:
- Constant Field Values
-
SYN_RESEND_TRIES
public static final int SYN_RESEND_TRIES
SYN tries before giving up.- See Also:
- Constant Field Values
-
SYN_RESEND_DELAY
public static final int SYN_RESEND_DELAY
Delay between SYN resends- See Also:
- Constant Field Values
-
FINACK_RESEND_DELAY
public static final int FINACK_RESEND_DELAY
Delay waiting for FINACK confirmation.- See Also:
- Constant Field Values
-
FINACK_MAX_PACKETS
public static final int FINACK_MAX_PACKETS
Number of packets received waiting for FINACK confirmation nad how often to send them.- See Also:
- Constant Field Values
-
KEEPALIVE_INTERVAL
public static final int KEEPALIVE_INTERVAL
Interval between keepalive packets- See Also:
- Constant Field Values
-
KEEPALIVE_TIMEOUT
public static final int KEEPALIVE_TIMEOUT
Timeout for Keepalive packets.- See Also:
- Constant Field Values
-
MAX_KEY_LIFETIME
public static final long MAX_KEY_LIFETIME
Maximum number of bytes before renewing the communication key.- See Also:
- Constant Field Values
-
MAX_KEY_RETENTION
public static final byte MAX_KEY_RETENTION
Old keys retained after key renewal to catch stray packets.- See Also:
- Constant Field Values
-
-