Documentation ¶
Index ¶
- type AddrType
- type ConnectionContinuationHandler
- type HTTPSOCKSAuthInfo
- type SocketAddress
- func NewSocketAddressByDomain(domain string, port uint16) *SocketAddress
- func NewSocketAddressByIP(ip *netip.Addr, port uint16) *SocketAddress
- func ToSocketAddr(host string, requirePort bool, defaultPort uint16) (*SocketAddress, error)
- func ToSocketAddrFromNetworkAddr(network, host string) (*SocketAddress, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionContinuationHandler ¶
type ConnectionContinuationHandler interface { CreateConnection(accessAddr *SocketAddress) (net.Conn, error) ForwardConnection(srcRWC io.ReadWriteCloser, accessAddr *SocketAddress) error }
type HTTPSOCKSAuthInfo ¶ added in v0.1.1
func (*HTTPSOCKSAuthInfo) IsEmpty ¶ added in v0.1.1
func (authInfo *HTTPSOCKSAuthInfo) IsEmpty() bool
func (*HTTPSOCKSAuthInfo) NotEqual ¶ added in v0.1.1
func (authInfo *HTTPSOCKSAuthInfo) NotEqual(anotherAuthInfo *HTTPSOCKSAuthInfo) bool
func (*HTTPSOCKSAuthInfo) NotEqual2 ¶ added in v0.1.1
func (authInfo *HTTPSOCKSAuthInfo) NotEqual2(username, password string) bool
type SocketAddress ¶
func NewSocketAddressByDomain ¶
func NewSocketAddressByDomain(domain string, port uint16) *SocketAddress
func NewSocketAddressByIP ¶
func NewSocketAddressByIP(ip *netip.Addr, port uint16) *SocketAddress
func ToSocketAddr ¶
func ToSocketAddr(host string, requirePort bool, defaultPort uint16) (*SocketAddress, error)
func ToSocketAddrFromNetworkAddr ¶
func ToSocketAddrFromNetworkAddr(network, host string) (*SocketAddress, error)
func (*SocketAddress) ToHostStr ¶
func (addr *SocketAddress) ToHostStr() string
Click to show internal directories.
Click to hide internal directories.