tcp

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTCP

func NewTCP() services.Service

Types

type TCP

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

func (*TCP) CheckArgs

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

func (*TCP) Clean

func (s *TCP) Clean()

func (*TCP) InitOutConnPool

func (s *TCP) InitOutConnPool()

func (*TCP) InitService

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

func (*TCP) OutToTCP

func (s *TCP) OutToTCP(inConn *net.Conn) (err error)

func (*TCP) OutToUDP

func (s *TCP) OutToUDP(inConn *net.Conn) (err error)

func (*TCP) Start

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

func (*TCP) StopService

func (s *TCP) StopService()

type TCPArgs

type TCPArgs struct {
	Parent              *string
	CertFile            *string
	KeyFile             *string
	CertBytes           []byte
	KeyBytes            []byte
	Local               *string
	ParentType          *string
	LocalType           *string
	Timeout             *int
	CheckParentInterval *int
	KCP                 kcpcfg.KCPConfigArgs
}

Jump to

Keyboard shortcuts

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