Udp

package
v0.0.0-...-864f672 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ip        [4]byte
	Port      int
	LIp       [4]byte
	LPort     int
	MaxLength int32
	AllLength int32
}

type Contoller

type Contoller struct {
	Config    Config
	UdpSocket *net.UDPConn
	Error     error

	Data    []byte
	DataMap map[int][2]interface{}
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Contoller) GetData

func (c *Contoller) GetData()

func (*Contoller) Initialize

func (c *Contoller) Initialize()

func (*Contoller) ListenUdp

func (c *Contoller) ListenUdp()

func (*Contoller) ParsingMessage

func (c *Contoller) ParsingMessage(data []byte)

Jump to

Keyboard shortcuts

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