package
0.0.0-20240920015605-358179924914
Repository: https://github.com/cloudflare/tubular.git
Documentation: pkg.go.dev

# Functions

CanDial returns true if an address can be dialled in a specific network namespace.
CanDialName checks that a ListenWithName is reachable at the given network and address.
ChangeEffectiveCaps modifies the effective capabilities to the given list The effective set will be empty if called without arguments.
ConnectSocket connects a UDP socket to localhost.
CurrentNetNS returns the current thread's network namespace.
Dial connects to network and address in the given network namespace.
No description provided by the author
EnterUnprivilegedMode drops all effective capabilities and enters a capabilities only environment.
FileStatusFlags returns flags for the open file description onderlying conn.
No description provided by the author
No description provided by the author
JoinNetNS executes a function in a different network namespace.
Listen listens on a given address in a specific network namespace.
ListenAndEcho calls Listen and then starts an echo server on the returned connection.
ListenAndEchoWithName is like ListenAndEcho, except that you can distinguish multiple listeners by using CanDialName.
NewNetNS creates a pristine network namespace.
OpenFiles returns the specified number of files.
ReuseportGroup creates sockets that listen on the same port on either 127.0.0.1 or ::1, depending on the network.
ReuseportSockets creates two sockets that listen on the same port on either 127.0.0.1 or ::1, depending on the network.
No description provided by the author
SpawnChildWithFiles creates a process that holds onto a bunch of files.
WithCapabilities raises the effective capabilities.