proxydialer

package
v1.18.7 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 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 added in v1.18.1

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

func NewSlowDownDialer added in v1.18.1

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

func (SlowDownDialer) DialContext added in v1.18.1

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

func (SlowDownDialer) ListenPacket added in v1.18.1

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

type SlowDownSingDialer added in v1.18.1

type SlowDownSingDialer struct {
	SingDialer
	Slowdown *slowdown.SlowDown
}

func NewSlowDownSingDialer added in v1.18.1

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

func (SlowDownSingDialer) DialContext added in v1.18.1

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

func (SlowDownSingDialer) ListenPacket added in v1.18.1

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