relay

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Read

func (c *Conn) Read(b []byte) (n int, err error)

func (*Conn) Write

func (c *Conn) Write(b []byte) (n int, err error)

type Server

type Server struct {
	*tool.CloseWaiter
	// contains filtered or unexported fields
}

func NewDefaultServer

func NewDefaultServer(addr, rawKey string) (*Server, error)

func NewServer

func NewServer(config *ServerConfig) (*Server, error)

type ServerConfig

type ServerConfig struct {
	Addr        string
	RawKey      string
	CMDSwitch   share.SocksCMDSwitch
	ConnTimeout time.Duration
	DialTimeout time.Duration
	BindTimeout time.Duration //default 5s
}

Jump to

Keyboard shortcuts

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