Documentation ¶
Index ¶
- func DialSlowContext(dialer *tfo.Dialer, ctx context.Context, network string, ...) (net.Conn, error)
- func New(router adapter.Router, options option.DialerOptions) N.Dialer
- func NewDetour(router adapter.Router, detour string) N.Dialer
- func NewResolvePacketConn(ctx context.Context, router adapter.Router, strategy dns.DomainStrategy, ...) N.NetPacketConn
- func NewRouter(router adapter.Router) N.Dialer
- type DefaultDialer
- type DetourDialer
- func (d *DetourDialer) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)
- func (d *DetourDialer) Dialer() (N.Dialer, error)
- func (d *DetourDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
- func (d *DetourDialer) Start() error
- func (d *DetourDialer) Upstream() any
- type ResolveDialer
- type ResolvePacketConn
- type ResolveUDPConn
- type RouterDialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialSlowContext ¶ added in v1.1.0
func NewResolvePacketConn ¶
func NewResolvePacketConn(ctx context.Context, router adapter.Router, strategy dns.DomainStrategy, conn net.PacketConn) N.NetPacketConn
Types ¶
type DefaultDialer ¶
type DefaultDialer struct {
// contains filtered or unexported fields
}
func NewDefault ¶
func NewDefault(router adapter.Router, options option.DialerOptions) *DefaultDialer
func (*DefaultDialer) DialContext ¶
func (*DefaultDialer) ListenPacket ¶
func (d *DefaultDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
type DetourDialer ¶
type DetourDialer struct {
// contains filtered or unexported fields
}
func (*DetourDialer) DialContext ¶
func (*DetourDialer) ListenPacket ¶
func (d *DetourDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
func (*DetourDialer) Start ¶
func (d *DetourDialer) Start() error
func (*DetourDialer) Upstream ¶
func (d *DetourDialer) Upstream() any
type ResolveDialer ¶
type ResolveDialer struct {
// contains filtered or unexported fields
}
func NewResolveDialer ¶
func (*ResolveDialer) DialContext ¶
func (*ResolveDialer) ListenPacket ¶
func (d *ResolveDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
func (*ResolveDialer) Upstream ¶
func (d *ResolveDialer) Upstream() any
type ResolvePacketConn ¶
type ResolvePacketConn struct { net.PacketConn // contains filtered or unexported fields }
func (*ResolvePacketConn) ReadPacket ¶
func (*ResolvePacketConn) Upstream ¶
func (w *ResolvePacketConn) Upstream() any
func (*ResolvePacketConn) WritePacket ¶
type ResolveUDPConn ¶
func (*ResolveUDPConn) ReadPacket ¶
func (*ResolveUDPConn) Upstream ¶
func (w *ResolveUDPConn) Upstream() any
func (*ResolveUDPConn) WritePacket ¶
type RouterDialer ¶
type RouterDialer struct {
// contains filtered or unexported fields
}
func (*RouterDialer) DialContext ¶
func (*RouterDialer) ListenPacket ¶
func (d *RouterDialer) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)
func (*RouterDialer) Upstream ¶
func (d *RouterDialer) Upstream() any
Source Files ¶
Click to show internal directories.
Click to hide internal directories.