Categorygithub.com/getlantern/netx
modulepackage
0.0.0-20240830183145-c257516187f0
Repository: https://github.com/getlantern/netx.git
Documentation: pkg.go.dev

# Functions

BidiCopy copies between in and out in both directions using the specified buffers, returning the errors from copying to out and copying to in.
BidiCopyWithOpts is like the original BidiCopy but providing more options and returning channels for reading the errors rather than the errors themselves.
Dial is like DialTimeout using a default timeout of 1 minute.
DialContext dials the given addr on the given net type using the configured dial function, with the given context.
DialTimeout dials the given addr on the given net type using the configured dial function, timing out after the given timeout.
DialUDP acts like Dial but for UDP networks.
EnableNAT64 enables automatic discovery of NAT64 prefix using DNS query for ipv4only.arpa.
IsTimeout indicates whether the given error is a network timeout error.
ListenUDP acts like ListenPacket for UDP networks.
OverrideDial overrides the global dial function.
OverrideDialUDP overrides the global dialUDP function.
OverrideListenUDP overrides the global listenUDP function.
OverrideResolveIPs overrides the global IP resolution function.
Reset resets netx to its default settings.
Resolve resolves the given tcp address using the configured resolve function.
No description provided by the author
WalkWrapped walks the tree of wrapped conns, calling the callback.

# Structs

CopyOpts provides options for BidiCopy.

# Interfaces

WrappedConn is a connection that wraps another connection.