Documentation ¶
Index ¶
- type Listener
- func (l *Listener) Close() error
- func (l *Listener) ListenOptions() option.ListenOptions
- func (l *Listener) ListenTCP() (net.Listener, error)
- func (l *Listener) ListenUDP() (net.PacketConn, error)
- func (l *Listener) PacketWriter() N.PacketWriter
- func (l *Listener) Start() error
- func (l *Listener) TCPListener() net.Listener
- func (l *Listener) UDPAddr() M.Socksaddr
- func (l *Listener) UDPConn() *net.UDPConn
- type Options
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 (*Listener) ListenOptions ¶
func (l *Listener) ListenOptions() option.ListenOptions
func (*Listener) PacketWriter ¶
func (l *Listener) PacketWriter() N.PacketWriter
func (*Listener) TCPListener ¶
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 }
Click to show internal directories.
Click to hide internal directories.