Documentation ¶
Overview ¶
Package nettype defines an interface that doesn't exist in the Go net package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PacketConn ¶
type PacketListener ¶
type PacketListener interface {
ListenPacket(ctx context.Context, network, address string) (net.PacketConn, error)
}
PacketListener defines the ListenPacket method as implemented by net.ListenConfig, net.ListenPacket, and tstest/natlab.
type PacketListenerWithNetIP ¶
type PacketListenerWithNetIP interface {
ListenPacket(ctx context.Context, network, address string) (PacketConn, error)
}
func MakePacketListenerWithNetIP ¶
func MakePacketListenerWithNetIP(ln PacketListener) PacketListenerWithNetIP
Click to show internal directories.
Click to hide internal directories.