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

# Functions

NewConnectioned creates a new unbound connectionedEndpoint.
NewConnectionless creates a new unbound dgram endpoint.
NewExternal creates a new externally backed Endpoint.
NewHostConnectedEndpoint creates a new HostConnectedEndpoint backed by a host fd imported at sentry startup.
NewPair allocates a new pair of connected unix-domain connectionedEndpoints.
NewSCMEndpoint creates a new SCMConnectedEndpoint backed by a host fd that was passed through a Unix socket.

# Constants

enableLogging indicates whether reference-related events should be logged (with stack traces).

# Variables

obj is used to customize logging.

# Structs

Address is a unix socket address.
A ControlMessages represents a collection of socket control messages.
HostConnectedEndpoint is an implementation of ConnectedEndpoint and Receiver.
Refs implements refs.RefCounter.
SCMConnectedEndpoint represents an endpoint backed by a host fd that was passed through a gofer Unix socket.
SCMRights implements RightsControlMessage with host FDs.

# Interfaces

A BoundEndpoint is a unix endpoint that can be connected to.
BoundSocketFD is an interface that wraps a socket FD that was bind(2)-ed.
A ConnectedEndpoint is an Endpoint that can be used to send Messages.
A ConnectingEndpoint is a connectioned unix endpoint that is attempting to establish a bidirectional connection with a BoundEndpoint.
A Credentialer is a socket or endpoint that supports the SO_PASSCRED socket option.
A CredentialsControlMessage is a control message containing Unix credentials.
Endpoint is the interface implemented by Unix transport protocol implementations that expose functionality like sendmsg, recvmsg, connect, etc.
HostBoundEndpoint is an interface that endpoints can implement if they support binding listening and accepting connections from a bound Unix domain socket on the host.
A Receiver can be used to receive Messages.
A RightsControlMessage is a control message containing FDs.