tcp

package
v0.0.0-...-4526a9f Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: GPL-3.0 Imports: 14 Imported by: 2

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) GetParentConn

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

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()

func (*TCP) UDPGCDeamon

func (s *TCP) UDPGCDeamon()

func (*TCP) UDPRevecive

func (s *TCP) UDPRevecive(key string)

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
	Jumper              *string
}

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