package
0.9.0
Repository: https://github.com/noisysockets/netstack.git
Documentation: pkg.go.dev

# Functions

EventMaskFromLinux returns an EventMask representing the supported events from the Linux events e, which is in the format used by poll(2).
NewChannelEntry initializes a new Entry that does a non-blocking write to a struct{} channel when the callback is called.
NewFunctionEntry initializes a new Entry that calls the given function.

# Constants

Events that waiters can wait on.
POLLERR.
POLLHUP.
POLLIN.
Events that waiters can wait on.
POLLOUT.
POLLPRI.
POLLRDHUP.
POLLRDNORM.
POLLWRNORM.
Events that waiters can wait on.
Events that waiters can wait on.

# Structs

AlwaysReady implements the Waitable interface but is always ready.
Entry
Entry represents a waiter that can be add to the a wait queue.
NeverReady implements the Waitable interface but is never ready.
Queue represents the wait queue where waiters can be added and notifiers can notify them when events happen.

# Interfaces

EventListener provides a notify callback.
Waitable contains the methods that need to be implemented by waitable objects.

# Type aliases

EventMask represents io events as used in the poll() syscall.