client

package
v0.0.0-...-75fa4b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 20 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPClientContext

type UDPClientContext struct {
	TrackedChannel sync.Map //Key:uint16 Channel
	TrackedAddr    sync.Map //Key:

	TxToServer     chan UDPClientTxToServerTraffic
	TxToServerData chan UDPClientTxToServerDataTraffic
	RxFromServer   chan UDPClientRxFromServerTraffic

	LocalTxToTun   chan interfaces.UDPPacket
	LocalRxFromTun chan interfaces.UDPPacket

	LastPongRecv time.Time

	GetTransmitLayerSentRecvStatsInt interfaces.GetTransmitLayerSentRecvStats

	QualityInt interfaces.QualityEstimator
	// contains filtered or unexported fields
}

func UDPClient

func UDPClient(context context.Context,
	TxToServer chan UDPClientTxToServerTraffic,
	TxToServerData chan UDPClientTxToServerDataTraffic,
	RxFromServer chan UDPClientRxFromServerTraffic,
	LocalTxToTun chan interfaces.UDPPacket,
	LocalRxFromTun chan interfaces.UDPPacket,
	GetTransmitLayerSentRecvStatsInt interfaces.GetTransmitLayerSentRecvStats) *UDPClientContext

func (*UDPClientContext) AggressivePingBegin

func (ucc *UDPClientContext) AggressivePingBegin()

func (*UDPClientContext) RxFromServerWorker

func (ucc *UDPClientContext) RxFromServerWorker()

func (*UDPClientContext) TxToServerWorker

func (ucc *UDPClientContext) TxToServerWorker()

type UDPClientRxFromServerTraffic

type UDPClientRxFromServerTraffic interfaces.TrafficWithChannelTag

type UDPClientTrackedAddrContext

type UDPClientTrackedAddrContext struct {
	Channel uint16
}

type UDPClientTrackedAddrKey

type UDPClientTrackedAddrKey struct {
	Source net.UDPAddr
	Dest   net.UDPAddr
}

func (*UDPClientTrackedAddrKey) Key

func (uctak *UDPClientTrackedAddrKey) Key() string

type UDPClientTxToServerDataTraffic

type UDPClientTxToServerDataTraffic interfaces.TrafficWithChannelTag

type UDPClientTxToServerTraffic

type UDPClientTxToServerTraffic interfaces.TrafficWithChannelTag

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL