dispatcher

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BufferSize = 16 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	sync.RWMutex

	ListenAddr  string
	Port        int
	TCPFastOpen bool
	Validator   *vmess.Validator
	// contains filtered or unexported fields
}

func (*Dispatcher) Close

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

func (*Dispatcher) Listen

func (d *Dispatcher) Listen() error

func (*Dispatcher) UpdateValidator

func (d *Dispatcher) UpdateValidator(validator *vmess.Validator)

type DuplexConn

type DuplexConn interface {
	net.Conn
	// Closes the Read end of the connection, allowing for the release of resources.
	// No more reads should happen.
	CloseRead() error
	// Closes the Write end of the connection. An EOF or FIN signal may be
	// sent to the connection target.
	CloseWrite() error
}

DuplexConn is a net.Conn that allows for closing only the reader or writer end of it, supporting half-open state.

Jump to

Keyboard shortcuts

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