package net

Import Path
	github.com/pion/dtls/v3/internal/net (on go.dev)

Dependency Relation
	imports 7 packages, and imported by one package

Involved Source Files Package net implements DTLS specific networking primitives. NOTE: this package is an adaption of pion/transport/packetio that allows for storing a remote address alongside each packet in the buffer and implements relevant methods of net.PacketConn. If possible, the updates made in this repository will be reflected back upstream. If not, it is likely that this will be moved to a public package in this repository. This package was migrated from pion/transport/packetio at https://github.com/pion/transport/commit/6890c795c807a617c054149eee40a69d7fdfbfdb
Package-Level Type Names (total 2)
/* sort by: | */
AddrPacket is a packet payload and the associated remote address from which it was received.
PacketBuffer is a circular buffer for network packets. Each slot in the buffer contains the remote address from which the packet was received, as well as the packet data. Close closes the buffer, allowing unread packets to be read, but erroring on any new writes. ReadFrom reads a single packet from the buffer, or blocks until one is available. SetReadDeadline sets the read deadline for the buffer. WriteTo writes a single packet to the buffer. The supplied address will remain associated with the packet. *PacketBuffer : github.com/pion/datachannel.ReadDeadliner *PacketBuffer : github.com/prometheus/common/expfmt.Closer *PacketBuffer : io.Closer func NewPacketBuffer() *PacketBuffer
Package-Level Functions (only one)
NewPacketBuffer creates a new PacketBuffer.
Package-Level Variables (only one)
ErrTimeout indicates that deadline was reached before operation could be completed.