tcp

package
v0.0.0-...-83b6606 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTCPListenProxy

func CreateTCPListenProxy(addr *proxy.ProxyAddr) (*proxy.Proxy, error)

func CreateTCPProxy

func CreateTCPProxy(addr *proxy.ProxyAddr) (*proxy.Proxy, error)

Types

type ProxyTCP

type ProxyTCP struct {
	Network string
	Address string
	Dialer  net.Dialer
}

func (*ProxyTCP) Dial

func (p *ProxyTCP) Dial() (net.Conn, error)

type ProxyTCPListener

type ProxyTCPListener struct {
	Network string
	Address string
	// contains filtered or unexported fields
}

func (*ProxyTCPListener) Accept

func (p *ProxyTCPListener) Accept() (net.Conn, error)

func (*ProxyTCPListener) IsListening

func (p *ProxyTCPListener) IsListening() bool

func (*ProxyTCPListener) Listen

func (p *ProxyTCPListener) Listen() error

Jump to

Keyboard shortcuts

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