package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev

# Packages

Package pipe implements a shared memory ring buffer on which a single reader and a single writer can operate (read/write) concurrently.
Package queue provides the implementation of transmit and receive queues based on shared memory ring buffers.

# Functions

New creates a new shared-memory-based endpoint.
NewQueuePair creates a shared memory QueuePair.
NewServerEndpoint creates a new shared-memory-based endpoint.
QueueConfigFromFDs constructs a QueueConfig out of a slice of ints where each entry represents an file descriptor.

# Constants

DefaultBufferSize is the size of each individual buffer that the data region is broken down into to hold packet data.
1MiB.
64KiB.
4KiB.
DefaultTmpDir is the path used to create the memory files if a path is not provided.

# Structs

Options specify the details about the sharedmem endpoint to be created.
QueueConfig holds all the file descriptors needed to describe a tx or rx queue over shared memory.
QueueOptions allows queue specific configuration to be specified when creating a QueuePair.
A QueuePair represents a pair of TX/RX queues.