udp

package
v0.0.0-...-84c9acc Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUDP

func NewUDP() services.Service

Types

type UDP

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

func (*UDP) CheckArgs

func (s *UDP) CheckArgs() (err error)

func (*UDP) Clean

func (s *UDP) Clean()

func (*UDP) GetConn

func (s *UDP) GetConn(connKey string) (conn net.Conn, isNew bool, err error)

func (*UDP) GetParentConn

func (s *UDP) GetParentConn() (conn net.Conn, err error)

func (*UDP) InitService

func (s *UDP) InitService() (err error)

func (*UDP) OutToTCP

func (s *UDP) OutToTCP(data []byte, localAddr, srcAddr *net.UDPAddr) (err error)

func (*UDP) OutToUDP

func (s *UDP) OutToUDP(packet []byte, localAddr, srcAddr *net.UDPAddr)

func (*UDP) OutToUDPGCDeamon

func (s *UDP) OutToUDPGCDeamon()

func (*UDP) Start

func (s *UDP) Start(args interface{}, log *logger.Logger) (err error)

func (*UDP) StopService

func (s *UDP) StopService()

func (*UDP) UDPGCDeamon

func (s *UDP) UDPGCDeamon()

func (*UDP) UDPRevecive

func (s *UDP) UDPRevecive(key string)

func (*UDP) UDPSend

func (s *UDP) UDPSend(data []byte, localAddr, srcAddr *net.UDPAddr)

type UDPArgs

type UDPArgs struct {
	Parent              *string
	CertFile            *string
	KeyFile             *string
	CertBytes           []byte
	KeyBytes            []byte
	Local               *string
	ParentType          *string
	Timeout             *int
	CheckParentInterval *int
}

type UDPConnItem

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

Jump to

Keyboard shortcuts

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