Documentation
¶
Overview ¶
Deprecated: Use the StreamDialer and PacketListener types under github.com/Jigsaw-Code/outline-ss-server/net instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddr
deprecated
newAddr returns a net.Addr that holds an address of the form `host:port` with a domain name or IP as host. Used for SOCKS addressing.
Deprecated: use net.UDPAddr or net.TCPAddr instead.
func NewPrefixSaltGenerator
deprecated
added in
v1.4.0
func NewPrefixSaltGenerator(prefix []byte) shadowsocks.SaltGenerator
Deprecated: Prefer github.com/Jigsaw-Code/outline-ss-server/shadowsocks/client.NewPrefixSaltGenerator
Types ¶
type Client
deprecated
type Client interface { // DialTCP connects to `raddr` over TCP though a Shadowsocks proxy. // `laddr` is a local bind address, a local address is automatically chosen if nil. // `raddr` has the form `host:port`, where `host` can be a domain name or IP address. // // Deprecated: use StreamDialer.Dial instead. DialTCP(laddr *net.TCPAddr, raddr string) (onet.DuplexConn, error) // ListenUDP relays UDP packets though a Shadowsocks proxy. // `laddr` is a local bind address, a local address is automatically chosen if nil. // // Deprecated: use PacketDialer.ListenPacket instead. ListenUDP(laddr *net.UDPAddr) (net.PacketConn, error) // SetTCPSaltGenerator controls the SaltGenerator used for TCP upstream. // `salter` may be `nil`. // This method is not thread-safe. SetTCPSaltGenerator(shadowsocks.SaltGenerator) }
Client is a client for Shadowsocks TCP and UDP connections.
Deprecated: Use shadowsocks.StreamDialer and shadowsocks.PacketListener instead.
func NewClient
deprecated
NewClient creates a client that routes connections to a Shadowsocks proxy listening at `host:port`, with authentication parameters `cipher` (AEAD) and `password`.
Deprecated: Use ssclient.StreamDialer and ssclient.PacketListener instead.