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 intFIN_VERIFICATION_LENGTHDisconnect verification packet length in bytesstatic intFINACK_MAX_PACKETSNumber of packets received waiting for FINACK confirmation nad how often to send them.static intFINACK_RESEND_DELAYDelay waiting for FINACK confirmation.static intINITIAL_LATENCYInitial assumed latency in ms.static intKEEPALIVE_INTERVALInterval between keepalive packetsstatic intKEEPALIVE_TIMEOUTTimeout for Keepalive packets.static longMAX_KEY_LIFETIMEMaximum number of bytes before renewing the communication key.static byteMAX_KEY_RETENTIONOld keys retained after key renewal to catch stray packets.protected static intMAX_MSG_PART_SIZEMaximum size for message partsstatic intMIN_LATENCYMinimum assumed latency in ms.static doubleMIN_LATENCY_RESEND_DELAY_FACTORFactor defining when an unconfirmed packet is resend in terms of measured roundtrip latency.protected static intMISSING_PACKET_TIMEOUTTimeout value for missing packets.static intPROTOCOL_VERSIONProtocol version.static doubleRND_LATENCY_RESEND_DELAY_FACTORFactor defining when an unconfirmed packet is resend in terms of measured roundtrip latency.static intSYN_RESEND_DELAYDelay between SYN resendsstatic intSYN_RESEND_TRIESSYN 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
-
-