Documentation ¶
Index ¶
- func NewUnixDialer(s string, d proxy.Dialer) (proxy.Dialer, error)
- func NewUnixServer(s string, p proxy.Proxy) (proxy.Server, error)
- type PktConn
- type Session
- type Unix
- func (s *Unix) Addr() string
- func (s *Unix) Dial(network, addr string) (net.Conn, error)
- func (s *Unix) DialUDP(network, addr string) (net.PacketConn, net.Addr, error)
- func (s *Unix) ListenAndServe()
- func (s *Unix) ListenAndServeTCP()
- func (s *Unix) ListenAndServeUDP()
- func (s *Unix) Serve(c net.Conn)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnixDialer ¶
NewUnixDialer returns a unix domain socket dialer.
Types ¶
type PktConn ¶ added in v0.13.0
PktConn .
type Session ¶ added in v0.15.0
type Session struct {
// contains filtered or unexported fields
}
Session is a udp session
type Unix ¶
type Unix struct {
// contains filtered or unexported fields
}
Unix domain socket struct.
func (*Unix) Dial ¶
Dial connects to the address addr on the network net via the proxy. NOTE: must be the first dialer in a chain
func (*Unix) DialUDP ¶
DialUDP connects to the given address via the proxy. NOTE: must be the first dialer in a chain
func (*Unix) ListenAndServeTCP ¶ added in v0.13.0
func (s *Unix) ListenAndServeTCP()
ListenAndServeTCP serves tcp requests.
func (*Unix) ListenAndServeUDP ¶ added in v0.13.0
func (s *Unix) ListenAndServeUDP()
ListenAndServeUDP serves udp requests.
Click to show internal directories.
Click to hide internal directories.