proxydialer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(proxy C.ProxyAdapter, dialer C.Dialer, statistic bool) C.Dialer

func NewByName

func NewByName(proxyName string, dialer C.Dialer) (C.Dialer, error)

Types

type SingDialer

type SingDialer interface {
	N.Dialer
	SetDialer(dialer C.Dialer)
}

func NewByNameSingDialer

func NewByNameSingDialer(proxyName string, dialer C.Dialer) SingDialer

func NewSingDialer

func NewSingDialer(proxy C.ProxyAdapter, dialer C.Dialer, statistic bool) SingDialer

type SlowDownDialer

type SlowDownDialer struct {
	C.Dialer
	Slowdown *slowdown.SlowDown
}

func NewSlowDownDialer

func NewSlowDownDialer(d C.Dialer, sd *slowdown.SlowDown) SlowDownDialer

func (SlowDownDialer) DialContext

func (d SlowDownDialer) DialContext(ctx context.Context, network, address string) (net.Conn, error)

func (SlowDownDialer) ListenPacket

func (d SlowDownDialer) ListenPacket(ctx context.Context, network, address string, rAddrPort netip.AddrPort) (net.PacketConn, error)

type SlowDownSingDialer

type SlowDownSingDialer struct {
	SingDialer
	Slowdown *slowdown.SlowDown
}

func NewSlowDownSingDialer

func NewSlowDownSingDialer(d SingDialer, sd *slowdown.SlowDown) SlowDownSingDialer

func (SlowDownSingDialer) DialContext

func (d SlowDownSingDialer) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func (SlowDownSingDialer) ListenPacket

func (d SlowDownSingDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

Jump to

Keyboard shortcuts

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