Documentation ¶
Overview ¶
Package prehook implements a connection prehook mechanism, to handle any pre-negotiation required by a remote node before the B2F protocol can commence (e.g. packet node traversal).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConnNotWrapped = errors.New("connection not wrapped for prehook")
Functions ¶
Types ¶
type Conn ¶
func Wrap ¶
Wrap returns a wrapped connection with the ability to execute a prehook.
The returned Conn implements the net.Conn interface, and should be used in place of the original throughout the lifetime of the connection once the prehook script is executed.
Click to show internal directories.
Click to hide internal directories.