Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenLoopbackUDP ¶
func ListenLoopbackUDP(pid int, port uint16) (net.PacketConn, error)
ListenLoopbackUDP returns a UDP socket bound to 127.0.0.1:port in the network namespace of the process pid.
The main thread of the process must be locked to the main goroutine.
func StartServer ¶
func StartServer(conn net.PacketConn, resolver Resolver) (func(), error)
StartServer answers queries arriving on conn until the returned shutdown function is called. Names are resolved with resolver.
Takes ownership of conn, closing it when the server fails to start or the shutdown function is called.
Types ¶
Click to show internal directories.
Click to hide internal directories.