Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnToPacketConn ¶
func ConnToPacketConn(conn net.Conn) net.PacketConn
ConnToPacketConn wraps around a dialed UDP connection. Its only purpose is to wrap around WriteTo and make it call Write instead, because WriteTo is invalid on a dialed connection.
Types ¶
type DiscardHandler ¶
type DiscardHandler struct{}
DiscardHandler implements a slog.Handler that is always disabled. Each of its methods return immediately without any code running.
Click to show internal directories.
Click to hide internal directories.