SendService

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: 3 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
	TimeWait int
}

type SendController

type SendController struct {
	Config  Config
	SendMsg SendMsg
	Socket  *net.UDPConn
	Msg     []byte
	Err     error
}

func (*SendController) Initialize

func (s *SendController) Initialize()

func (*SendController) Send

func (s *SendController) Send(data []byte)

func (*SendController) UdpCon

func (s *SendController) UdpCon()

type SendMsg

type SendMsg struct {
	Head            []byte
	Start           []byte
	Length          []byte
	End             []byte
	MsgMap          map[int][2][]byte
	Count           int
	ControlLock     int
	InitialPosition int
	Min             int
}

Jump to

Keyboard shortcuts

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