unix

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUnixDialer

func NewUnixDialer(s string, d proxy.Dialer) (proxy.Dialer, error)

NewUnixDialer returns a unix domain socket dialer.

func NewUnixServer

func NewUnixServer(s string, p proxy.Proxy) (proxy.Server, error)

NewUnixServer returns a unix domain socket server.

Types

type Unix

type Unix struct {
	// contains filtered or unexported fields
}

Unix domain socket struct.

func NewUnix

func NewUnix(s string, d proxy.Dialer, p proxy.Proxy) (*Unix, error)

NewUnix returns unix fomain socket proxy.

func (*Unix) Addr

func (s *Unix) Addr() string

Addr returns forwarder's address.

func (*Unix) Dial

func (s *Unix) Dial(network, addr string) (net.Conn, error)

Dial connects to the address addr on the network net via the proxy.

func (*Unix) DialUDP

func (s *Unix) DialUDP(network, addr string) (net.PacketConn, net.Addr, error)

DialUDP connects to the given address via the proxy.

func (*Unix) ListenAndServe

func (s *Unix) ListenAndServe()

ListenAndServe serves requests.

func (*Unix) Serve

func (s *Unix) Serve(c net.Conn)

Serve serves requests.

Jump to

Keyboard shortcuts

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