udpclient

package
v0.9.17 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPClient

type UDPClient struct {
	Conn *net.UDPConn
	// contains filtered or unexported fields
}

UDPClient is a upp socket client

func New

func New(addr string, port int) *UDPClient

NewUDPClient returns new udpclient instance

func (*UDPClient) SetUDPMaxBytes

func (udpClient *UDPClient) SetUDPMaxBytes(max int)

func (*UDPClient) WriteBuffer

func (udpClient *UDPClient) WriteBuffer(buff []byte) bool

Send will send data via udp socket

func (*UDPClient) WriteBufferList

func (udpClient *UDPClient) WriteBufferList(bufferList *list.List) bool

Jump to

Keyboard shortcuts

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