tcp

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = 7440 * time.Second
	BasicLen       = 32 + 2 + 16
)

[salt][encrypted payload length][length tag][encrypted payload][payload tag]

Variables

This section is empty.

Functions

func New

func New(g *config.Group) (d dispatcher.Dispatcher)

Types

type TCP added in v0.1.3

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

func (*TCP) Auth added in v0.1.3

func (d *TCP) Auth(buf []byte, data []byte, userContext *config.UserContext) (hit *config.Server, content []byte)

func (*TCP) Close added in v0.1.3

func (d *TCP) Close() (err error)

func (*TCP) Listen added in v0.1.3

func (d *TCP) Listen() (err error)

func (*TCP) UpdateGroup added in v0.1.3

func (d *TCP) UpdateGroup(group *config.Group)

Jump to

Keyboard shortcuts

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