client

package
v1.5.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

func NewAddr(address, network string) net.Addr

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

func NewClient(host string, port int, password, cipherName string) (Client, error)

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.

Jump to

Keyboard shortcuts

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