internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2018 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Users []struct {
		Username string
		Password string
	}
}

Config represents Telesock configuration.

type TCPConn

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

TCPConn represents TCP connection between SOCKS5 client and server.

func NewTCPConn

func NewTCPConn(c *net.TCPConn, l *zap.SugaredLogger, conf *Config) *TCPConn

NewTCPConn creates new TCPConn for given network connection.

func (*TCPConn) Auth

func (tcp *TCPConn) Auth(ctx context.Context) bool

func (*TCPConn) Close

func (tcp *TCPConn) Close()

func (*TCPConn) Req

func (tcp *TCPConn) Req(ctx context.Context) bool

func (*TCPConn) Run

func (tcp *TCPConn) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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