Documentation ¶
Index ¶
- func Equal(b []byte, s string) bool
- func NewConn(nc *net.TCPConn, proxyAuth string, cfg *tls.Config) net.Conn
- func NewPacketConn(nc *net.TCPConn, proxyAuth string, cfg *tls.Config) net.PacketConn
- func ParseURL(s string) (server, method, password string, err error)
- type Conn
- type Dialer
- type Handler
- type NetDialer
- type PacketConn
- type TLSDialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPacketConn ¶
NewPacketConn gives a new net.PacketConn
Types ¶
type Conn ¶
type Conn struct { // Conn is ... net.Conn // Reader is ... Reader io.Reader // Writer is ... Writer io.Writer // contains filtered or unexported fields }
Conn supports net.Conn
type Dialer ¶
type Dialer interface { Dial(string, string) (net.Conn, error) ListenPacket(string, string) (net.PacketConn, error) }
Dialer is ...
type Handler ¶
type Handler struct { // Dialer is ... Dialer Dialer // Cipehr is ... Cipher *core.Cipher // contains filtered or unexported fields }
Handler is ...
func NewHandler ¶
NewHandler is ...
func (*Handler) HandlePacket ¶
func (h *Handler) HandlePacket(conn gonet.PacketConn) error
HandlePacket is ...
type NetDialer ¶
NetDialer is ...
func (*NetDialer) ListenPacket ¶
func (d *NetDialer) ListenPacket(network, addr string) (net.PacketConn, error)
ListenPacket is ...
type PacketConn ¶
type PacketConn struct { // Conn is ... Conn // contains filtered or unexported fields }
PacketConn is to gives a new net.PacketConn
type TLSDialer ¶
type TLSDialer struct {
// contains filtered or unexported fields
}
TLSDialer transfer shadowsocks data over tcp and tls with HTTP CONNECT tunnel
func NewTLSDialer ¶
NewTLSDialer replace original NewClient to support new protocol
func (*TLSDialer) ListenPacket ¶
func (d *TLSDialer) ListenPacket(network, addr string) (net.PacketConn, error)
ListenPacket gives a net.PacketConn
Click to show internal directories.
Click to hide internal directories.