readbuffer

package
v5.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2025 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL