ssudp

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ATYP_IPv4        = 1
	ATYP_DOMAIN_NAME = 3
	ATYP_IPV6        = 4
)
View Source
const MaxAddrLen = 1 + 1 + 255 + 2

Variables

This section is empty.

Functions

func DialAddr

func DialAddr(lAddr, rAddr *net.UDPAddr) (net.Conn, error)

func DialAddress

func DialAddress(lAddress, rAddress string) (net.Conn, error)

func Listen

func Listen(addr *net.UDPAddr) (net.Conn, error)

func ListenAddress

func ListenAddress(address string) (net.Conn, error)

func NewUDP4Addr

func NewUDP4Addr(address string) (*net.UDPAddr, error)

func NewUDP6Addr

func NewUDP6Addr(address string) (*net.UDPAddr, error)

func NewUDPAddr

func NewUDPAddr(address string) (*net.UDPAddr, error)

func NewUDPAddrFromIPPort

func NewUDPAddrFromIPPort(ip string, port int, zone string) *net.UDPAddr

func Transfer

func Transfer(src net.Conn, dst net.Conn, closed bool) (chan iokit.Direction, error)

func TransferDynamic

func TransferDynamic(srcEncrypted net.Conn, config *sstrans.ShadowSocksConfig, closed bool) (chan iokit.Direction, error)

func TransferFromListen

func TransferFromListen(lAddrFrom *net.UDPAddr, config *sstrans.ShadowSocksConfig, keepListening bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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