EMANE
1.2.1
|
The FileDescriptorServiceProvider is used by NEM layer components to register file descriptors for servicing by the NEM layer functor queue.
FileDescriptorServiceProvider::addFileDescriptor is a template method that associates a callable and a type, either read or write, with a file descriptor.
The FileDescriptorServiceProvider is accessed via the PlatformServiceProvider. All components are given a reference to the PlatformServiceProvider when they are constructed.
The NEMQueuedLayer uses epoll with level-triggered events to service registered file descriptors using their associated callables.
A file descriptor can be removed from processing by using FileDescriptorServiceProvider::removeFileDescriptor.