package
0.0.0-20240428053021-e691de28565f
Repository: https://github.com/sagernet/gvisor.git
Documentation: pkg.go.dev
# Functions
NewPortManager creates new PortManager.
# Constants
FlagMask is a bit mask for BitFlags.
LoadBalancedFlag represents Flags.LoadBalanced.
MostRecentFlag represents Flags.MostRecent.
MultiBindFlagMask contains the flags that allow binding the same tuple multiple times.
TupleOnlyFlag represents Flags.TupleOnly.
# Structs
FlagCounter counts how many references each flag combination has.
Flags represents the type of port reservation.
PortManager manages allocating, reserving and releasing ports.
Reservation describes a port reservation.
# Type aliases
BitFlags is a bitset representation of Flags.
PortTester indicates whether the passed in port is suitable.