unix

package
v0.6.11 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 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, dialer proxy.Dialer) (proxy.Dialer, error)

NewUnixDialer returns a unix domain socket dialer

func NewUnixServer

func NewUnixServer(s string, dialer proxy.Dialer) (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, dialer proxy.Dialer) (*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) NextDialer

func (s *Unix) NextDialer(dstAddr string) proxy.Dialer

NextDialer returns the next dialer

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