udp

package
v0.0.0-...-1ef8d7c Latest Latest
Warning

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

Go to latest
Published: Jun 29, 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) InitOutConnPool

func (s *UDP) InitOutConnPool()

func (*UDP) InitService

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

func (*UDP) OutToTCP

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

func (*UDP) OutToUDP

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

func (*UDP) Start

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

func (*UDP) StopService

func (s *UDP) StopService()

type UDPArgs

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

Jump to

Keyboard shortcuts

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