Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetStack ¶
type NetStack struct {
// contains filtered or unexported fields
}
NetStack is virtual network stack to attach services to.
func New ¶
New returns an initialized API connected to the given tun device. Input packets must be submitted manually using SubmitPacket().
func (*NetStack) ListenUDP ¶
func (ns *NetStack) ListenUDP(port uint16) (net.PacketConn, error)
ListenUDP returns a new listener on the given port of the API address.
func (*NetStack) SubmitPacket ¶
SubmitPacket is the send bridge to the API network stack.
Click to show internal directories.
Click to hide internal directories.