# README
netpoll
# Functions
EpollCreate creates new epoll instance.
Handle creates new Desc with given conn and event.
HandleListener returns descriptor for a net.Listener.
HandleRead creates read descriptor for further use in Poller methods.
HandleReadOnce creates read descriptor for further use in Poller methods.
HandleReadWrite creates read and write descriptor for further use in Poller methods.
HandleWrite creates write descriptor for further use in Poller methods.
HandleWriteOnce creates write descriptor for further use in Poller methods.
Must is a helper that wraps a call to a function returning (*Desc, error).
New creates new epoll-based Poller instance with given config.
NewDesc creates descriptor from custom fd.
# Constants
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
Event values that configure the Poller's behavior.
Event values that could be passed to CallbackFn as additional information event.
EventHup is indicates that some side of i/o operations (receive, send or both) is closed.
Event values that configure the Poller's behavior.
EventPollerClosed is a special Event value the receipt of which means that the Poller instance is closed.
Event values that denote the type of events that caller want to receive.
Event values that could be passed to CallbackFn as additional information event.
Event values that denote the type of events that caller want to receive.
Event values that could be passed to CallbackFn as additional information event.
# Variables
ErrClosed is returned by Poller methods to indicate that instance is closed and operation could not be processed.
ErrNotFiler is returned by Handle* functions to indicate that given net.Conn does not provide access to its file descriptor.
ErrNotRegistered is returned by Poller Stop() and Resume() methods to indicate that connection with the same underlying file descriptor was not registered before within the poller instance.
ErrRegistered is returned by Poller Start() method to indicate that connection with the same underlying file descriptor was already registered within the poller instance.
# Structs
Config contains options for Poller configuration.
Desc is a network connection within netpoll descriptor.
Epoll represents single epoll instance.
EpollConfig contains options for Epoll instance configuration.
# Interfaces
Poller describes an object that implements logic of polling connections for i/o events such as availability of read() or write() operations.
# Type aliases
CallbackFn is a function that will be called on kernel i/o event notification.
EpollEvent represents epoll events configuration bit mask.
Event represents netpoll configuration bit mask.