relay

package
v0.0.0-...-3697f30 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UdpRelay

type UdpRelay struct {
	// contains filtered or unexported fields
}

func NewUdpClient

func NewUdpClient(url string, timeout time.Duration) *UdpRelay

func NewUdpRelay

func NewUdpRelay(udpconn *net.UDPConn, bufsize int) *UdpRelay

func (*UdpRelay) Close

func (u *UdpRelay) Close()

func (*UdpRelay) Connect

func (u *UdpRelay) Connect() error

func (*UdpRelay) EnableDebugLogs

func (u *UdpRelay) EnableDebugLogs(enabled bool, connid string)

func (*UdpRelay) Listen

func (u *UdpRelay) Listen(addr *net.UDPAddr)

func (*UdpRelay) RecvMsg

func (u *UdpRelay) RecvMsg() ([]byte, net.Addr, error)

func (*UdpRelay) SendMsg

func (u *UdpRelay) SendMsg(data []byte) error

Jump to

Keyboard shortcuts

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