listener

package
v1.11.0-beta.15 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: GPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

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

func New

func New(
	options Options,
) *Listener

func (*Listener) Close

func (l *Listener) Close() error

func (*Listener) ListenOptions

func (l *Listener) ListenOptions() option.ListenOptions

func (*Listener) ListenTCP

func (l *Listener) ListenTCP() (net.Listener, error)

func (*Listener) ListenUDP

func (l *Listener) ListenUDP() (net.PacketConn, error)

func (*Listener) PacketWriter

func (l *Listener) PacketWriter() N.PacketWriter

func (*Listener) Start

func (l *Listener) Start() error

func (*Listener) TCPListener

func (l *Listener) TCPListener() net.Listener

func (*Listener) UDPAddr

func (l *Listener) UDPAddr() M.Socksaddr

func (*Listener) UDPConn

func (l *Listener) UDPConn() *net.UDPConn

type Options

type Options struct {
	Context                  context.Context
	Logger                   logger.ContextLogger
	Network                  []string
	Listen                   option.ListenOptions
	ConnectionHandler        adapter.ConnectionHandlerEx
	PacketHandler            adapter.PacketHandlerEx
	OOBPacketHandler         adapter.OOBPacketHandlerEx
	ThreadUnsafePacketWriter bool
	DisablePacketOutput      bool
	SetSystemProxy           bool
	SystemProxySOCKS         bool
}

Jump to

Keyboard shortcuts

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