Documentation ¶
Index ¶
- func NewSSDialer(s string, d proxy.Dialer) (proxy.Dialer, error)
- func NewSSServer(s string, p proxy.Proxy) (proxy.Server, error)
- type PktConn
- type SS
- func (s *SS) Addr() string
- func (s *SS) Dial(network, addr string) (net.Conn, error)
- func (s *SS) DialUDP(network, addr string) (net.PacketConn, error)
- func (s *SS) ListenAndServe()
- func (s *SS) ListenAndServeTCP()
- func (s *SS) ListenAndServeUDP()
- func (s *SS) Serve(c net.Conn)
- func (s *SS) ServePacket(pc net.PacketConn)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSSDialer ¶
NewSSDialer returns a ss proxy dialer.
Types ¶
type PktConn ¶
type PktConn struct { net.PacketConn // contains filtered or unexported fields }
PktConn .
func NewPktConn ¶
NewPktConn returns a PktConn, the writeAddr must be *net.UDPAddr or *net.UnixAddr.
type SS ¶
SS is a base ss struct.
func (*SS) DialUDP ¶
func (s *SS) DialUDP(network, addr string) (net.PacketConn, error)
DialUDP connects to the given address via the proxy.
func (*SS) ListenAndServeTCP ¶
func (s *SS) ListenAndServeTCP()
ListenAndServeTCP serves tcp ss requests.
func (*SS) ListenAndServeUDP ¶
func (s *SS) ListenAndServeUDP()
ListenAndServeUDP serves udp requests.
func (*SS) ServePacket ¶ added in v0.16.0
func (s *SS) ServePacket(pc net.PacketConn)
ServePacket implementes proxy.PacketServer.
Click to show internal directories.
Click to hide internal directories.