#include <gr_select_handler.h>
Public Member Functions | |
virtual | ~gr_select_handler () |
int | fd () const |
int | file_descriptor () const |
virtual void | handle_read ()=0 |
Called when file_descriptor is readable. | |
virtual void | handle_write ()=0 |
Called when file_descriptor is writable. | |
virtual bool | readable () |
virtual bool | writable () |
Protected Member Functions | |
gr_select_handler (int file_descriptor) |
|
|
|
|
|
|
|
|
|
Called when file_descriptor is readable. Called when the dispatcher detects that file_descriptor can be read without blocking. |
|
Called when file_descriptor is writable. Called when dispatcher detects that file descriptor can be written without blocking. |
|
Called each time around the dispatcher loop to determine whether this handler's file descriptor should be added to the list on which read events can occur. The default method returns true, indicating that by default, all handlers are interested in read events. |
|
Called each time around the dispatcher loop to determine whether this handler's file descriptor should be added to the list on which write events can occur. The default method returns true, indicating that by default, all handlers are interested in write events. |