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.
Click to show internal directories.
Click to hide internal directories.