Implementation of Poller for Vitaly Luban's sig-per-fd (O_ONESIGFD) patch
Inheritance:
Public Methods
-
virtual int add(int fd, Client* client, short eventmask)
- Add a file descriptor to the set we monitor.
-
virtual int del(int fd)
- Remove a file descriptor
Public Methods
-
virtual int setSignum(int signum)
-
int init()
-
void shutdown()
-
virtual int setMask(int fd, short eventmask)
-
virtual int orMask(int fd, short eventmask)
-
virtual int andMask(int fd, short eventmask)
-
virtual void clearReadiness(int fd, short eventmask)
-
virtual int waitForEvents(int timeout_millisec)
-
virtual int getNextEvent(PollEvent* e)
-
virtual int waitAndDispatchEvents(int timeout_millisec)
Inherited from Poller:
Public Methods
-
int initWakeUpPipe()
-
int wakeUp()
Public Members
-
struct PollEvent
-
class Client
- A class to handle a particular file descriptor's readiness events
Documentation
Implementation of Poller for Vitaly Luban's sig-per-fd (O_ONESIGFD) patch
- virtual int add(int fd, Client* client, short eventmask)
-
Add a file descriptor to the set we monitor.
Caller should already have established a handler for SIGIO.
- Parameters:
- - fd file descriptor to add
- client object to handle events for this fd. May use same client with more than one fd.
eventmask - initial event mask for this fd
- virtual int del(int fd)
- Remove a file descriptor
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.