Documentation
¶
Index ¶
- Variables
- func DialParallel(ctx context.Context, dialer Dialer, network meta.Network, ...) (net.Conn, error)
- func DialSerial(ctx context.Context, this Dialer, network meta.Network, address []netip.Addr, ...) (net.Conn, error)
- type Config
- type DefaultDialer
- func (d *DefaultDialer) DialContext(ctx context.Context, network meta.Network, address addrs.Socksaddr) (net.Conn, error)
- func (d *DefaultDialer) DialParallel(ctx context.Context, network meta.Network, address []netip.Addr, port uint16) (net.Conn, error)
- func (d *DefaultDialer) ListenPacket(ctx context.Context, address addrs.Socksaddr) (net.PacketConn, error)
- type DefaultParallelDialer
- type Dialer
- type HappyEyeballConf
- type ParallelDialer
- type TFOConn
- func (c *TFOConn) Close() error
- func (c *TFOConn) Handshake(bs []byte) (int, error)
- func (c *TFOConn) LocalAddr() net.Addr
- func (c *TFOConn) NeedHandshake() bool
- func (c *TFOConn) Read(b []byte) (n int, err error)
- func (c *TFOConn) RemoteAddr() net.Addr
- func (c *TFOConn) SetDeadline(t time.Time) error
- func (c *TFOConn) SetReadDeadline(t time.Time) error
- func (c *TFOConn) SetWriteDeadline(t time.Time) error
- func (c *TFOConn) UnderlayConn() net.Conn
- func (c *TFOConn) Write(b []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var System = NewDefault()
Functions ¶
func DialParallel ¶
Types ¶
type DefaultDialer ¶
type DefaultDialer struct {
// contains filtered or unexported fields
}
DefaultDialer Only support dial tcp and udp Protocol. only can use to dial ip address ,not support resolve fqdn to ip address.
func NewDefault ¶
func NewDefault() *DefaultDialer
func NewDefaultConfig ¶
func NewDefaultConfig(config Config) *DefaultDialer
func (*DefaultDialer) DialContext ¶
func (*DefaultDialer) DialParallel ¶
func (*DefaultDialer) ListenPacket ¶
func (d *DefaultDialer) ListenPacket(ctx context.Context, address addrs.Socksaddr) (net.PacketConn, error)
type DefaultParallelDialer ¶ added in v0.0.3
type DefaultParallelDialer struct {
Dialer
Conf HappyEyeballConf
}
type HappyEyeballConf ¶ added in v0.0.3
var DefaultHappyEyeballConf HappyEyeballConf = HappyEyeballConf{ FallbackDelay: netvars.DefaultDialerFallbackDelay, Strategy: meta.StrategyDefault, }
type ParallelDialer ¶
type TFOConn ¶
type TFOConn struct {
// contains filtered or unexported fields
}
func (*TFOConn) NeedHandshake ¶
func (*TFOConn) RemoteAddr ¶
func (*TFOConn) UnderlayConn ¶
Click to show internal directories.
Click to hide internal directories.