Documentation
¶
Overview ¶
Package reuseport provides a function that returns a net.NewListener powered by a net.FileListener with a SO_REUSEPORT option set to the socket.
Index ¶
- func Listen(proto, addr string) (l net.Listener, err error)
- func ListenPacket(proto, addr string) (l net.PacketConn, err error)
- func NewListener(proto, addr string) (int, error)
- func NewReusablePortListener(proto, addr string) (l net.Listener, err error)
- func NewReusablePortPacketConn(proto, addr string) (l net.PacketConn, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenPacket ¶
func ListenPacket(proto, addr string) (l net.PacketConn, err error)
ListenPacket is an alias for NewReusablePortPacketConn.
func NewListener ¶
NewListener returns net.FileListener that created from a file discriptor for a socket with SO_REUSEPORT option.
func NewReusablePortListener ¶
NewListener returns net.FileListener that created from a file discriptor for a socket with SO_REUSEPORT option.
func NewReusablePortPacketConn ¶
func NewReusablePortPacketConn(proto, addr string) (l net.PacketConn, err error)
NewReusablePortPacketConn returns net.FilePacketConn that created from a file discriptor for a socket with SO_REUSEPORT option.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.

