Documentation ¶
Index ¶
- type DialContextFn
- type NoisySocket
- func (s *NoisySocket) Close() error
- func (n NoisySocket) Dial(network, address string) (net.Conn, error)
- func (n NoisySocket) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (n NoisySocket) Listen(network, address string) (net.Listener, error)
- func (n NoisySocket) LookupHostContext(ctx context.Context, host string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialContextFn ¶ added in v0.5.0
type NoisySocket ¶
type NoisySocket struct {
// contains filtered or unexported fields
}
NoisySocket is a noisy socket, it exposes Dial() and Listen() methods compatible with the net package.
func NewNoisySocket ¶
NewNoisySocket creates a new NoisySocket.
func (NoisySocket) DialContext ¶
DialContext creates a network connection with a context.
Directories ¶
Path | Synopsis |
---|---|
internal
|
|
conn
Package conn implements WireGuard's network connections.
|
Package conn implements WireGuard's network connections. |
replay
Package replay implements an efficient anti-replay algorithm as specified in RFC 6479.
|
Package replay implements an efficient anti-replay algorithm as specified in RFC 6479. |
Click to show internal directories.
Click to hide internal directories.