Documentation ¶
Index ¶
Constants ¶
View Source
const ConnectingRetryDuration = 100 * time.Millisecond
ConnectingRetryDuration represents the interval of retrying send initial Ping packet to the peer
View Source
const HeartbeatInterval = 20
HeartbeatInterval represent the interval of keepping heartbeat with the gateway in seconds
View Source
const MaxBufferSize = 4096
MaxBufferSize represents the max buffer size of read UDP packet
View Source
const MaxRetrySend = 10
MaxRetrySend represents the max tries of send notification to the peer
View Source
const PeerKeepaliveDuration = 5 * time.Second
PeerKeepaliveDuration represents the interval of keepaliving heartbeat
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.