Documentation
¶
Index ¶
- Constants
- func DialAddr(lAddr, rAddr *net.UDPAddr) (net.Conn, error)
- func DialAddress(lAddress, rAddress string) (net.Conn, error)
- func Listen(addr *net.UDPAddr) (net.Conn, error)
- func ListenAddress(address string) (net.Conn, error)
- func NewUDP4Addr(address string) (*net.UDPAddr, error)
- func NewUDP6Addr(address string) (*net.UDPAddr, error)
- func NewUDPAddr(address string) (*net.UDPAddr, error)
- func NewUDPAddrFromIPPort(ip string, port int, zone string) *net.UDPAddr
- func Transfer(src net.Conn, dst net.Conn, closed bool) (chan iokit.Direction, error)
- func TransferDynamic(srcEncrypted net.Conn, config *sstrans.ShadowSocksConfig, closed bool) (chan iokit.Direction, error)
- func TransferFromListen(lAddrFrom *net.UDPAddr, config *sstrans.ShadowSocksConfig, keepListening bool) error
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 NewUDPAddrFromIPPort ¶
func TransferDynamic ¶
func TransferFromListen ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.