Documentation
¶
Overview ¶
Package readbuffer contains a function to set the read buffer size of a UDP socket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadBuffer ¶
func ReadBuffer(pc PacketConn) (int, error)
ReadBuffer returns the read buffer size.
func SetReadBuffer ¶
func SetReadBuffer(pc PacketConn, size int) error
SetReadBuffer sets the read buffer size of the UDP connection and checks that it was set correctly.
Types ¶
type PacketConn ¶
type PacketConn interface {
net.PacketConn
SyscallConn() (syscall.RawConn, error)
SetReadBuffer(bytes int) error
}
PacketConn is a packet connection.
Click to show internal directories.
Click to hide internal directories.