socks

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: GPL-3.0 Imports: 11 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSocks4 added in v1.7.0

func HandleSocks4(conn net.Conn, in chan<- C.ConnContext)

func HandleSocks5 added in v1.7.0

func HandleSocks5(conn net.Conn, in chan<- C.ConnContext)

func New

func New(addr string, in chan<- C.ConnContext) (C.Listener, error)

func NewUDP

func NewUDP(addr string, in chan<- *inbound.PacketAdapter) (C.Listener, error)

Types

type Listener

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

func (*Listener) Address

func (l *Listener) Address() string

Address implements C.Listener

func (*Listener) Close

func (l *Listener) Close() error

Close implements C.Listener

func (*Listener) RawAddress added in v1.7.0

func (l *Listener) RawAddress() string

RawAddress implements C.Listener

type UDPListener

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

func (*UDPListener) Address

func (l *UDPListener) Address() string

Address implements C.Listener

func (*UDPListener) Close

func (l *UDPListener) Close() error

Close implements C.Listener

func (*UDPListener) RawAddress added in v1.7.0

func (l *UDPListener) RawAddress() string

RawAddress implements C.Listener

Jump to

Keyboard shortcuts

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