Class STunables


  • public class STunables
    extends java.lang.Object
    • 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
    • Constructor Detail

      • STunables

        public STunables()