Documentation ¶
Index ¶
Constants ¶
View Source
const ( STABLE = NetworkConditionType(1) UNSTABLE = NetworkConditionType(0) )
Variables ¶
View Source
var ( ErrPacketTooLate = errors.New("packetbuffers: packet is too late") ErrPacketDuplicate = errors.New("packetbuffers: packet is duplicate") )
Functions ¶
This section is empty.
Types ¶
type NetworkConditionType ¶
type NetworkConditionType int
type NetworkMonitor ¶
type NetworkMonitor struct {
// contains filtered or unexported fields
}
func Default ¶
func Default() *NetworkMonitor
func (*NetworkMonitor) Add ¶
func (n *NetworkMonitor) Add(seq uint16) error
func (*NetworkMonitor) OnNetworkConditionChanged ¶
func (n *NetworkMonitor) OnNetworkConditionChanged(f func(condition NetworkConditionType))
Click to show internal directories.
Click to hide internal directories.