GME
13
|
#define APR_POLLERR 0x010 |
Pending error
Definition at line 50 of file apr_poll.h.
#define APR_POLLHUP 0x020 |
Hangup occurred
Definition at line 51 of file apr_poll.h.
#define APR_POLLIN 0x001 |
Poll options Can read without blocking
Definition at line 47 of file apr_poll.h.
#define APR_POLLNVAL 0x040 |
Descriptor invalid
Definition at line 52 of file apr_poll.h.
#define APR_POLLOUT 0x004 |
Can write without blocking
Definition at line 49 of file apr_poll.h.
#define APR_POLLPRI 0x002 |
Priority data available
Definition at line 48 of file apr_poll.h.
#define APR_POLLSET_NOCOPY 0x002 |
Descriptors passed to apr_pollset_add() are not copied
Definition at line 60 of file apr_poll.h.
#define APR_POLLSET_NODEFAULT 0x010 |
Do not try to use the default method if the specified non-default method cannot be used
Definition at line 66 of file apr_poll.h.
#define APR_POLLSET_THREADSAFE 0x001 |
Pollset Flags Adding or removing a descriptor is thread-safe
Definition at line 57 of file apr_poll.h.
#define APR_POLLSET_WAKEABLE 0x004 |
Poll operations are interruptable by apr_pollset_wakeup()
Definition at line 63 of file apr_poll.h.
typedef apr_status_t(* apr_pollcb_cb_t)(void *baton, apr_pollfd_t *descriptor) |
Function prototype for pollcb handlers
baton | Opaque baton passed into apr_pollcb_poll() |
descriptor | Contains the notification for an active descriptor, the rtnevents member contains what events were triggered for this descriptor. |
Definition at line 385 of file apr_poll.h.
typedef struct apr_pollcb_t apr_pollcb_t |
Opaque structure used for pollset API
Definition at line 313 of file apr_poll.h.
typedef struct apr_pollfd_t apr_pollfd_t |
Definition at line 98 of file apr_poll.h.
typedef struct apr_pollset_t apr_pollset_t |
Opaque structure used for pollset API
Definition at line 116 of file apr_poll.h.
enum apr_datatype_e |
Used in apr_pollfd_t to determine what the apr_descriptor is
APR_NO_DESC |
nothing here |
APR_POLL_SOCKET |
descriptor refers to a socket |
APR_POLL_FILE |
descriptor refers to a file |
APR_POLL_LASTDESC |
|
Definition at line 84 of file apr_poll.h.
enum apr_pollset_method_e |
Pollset Methods
Definition at line 74 of file apr_poll.h.
Set up a pollset object
pollset | The pointer in which to return the newly created object |
size | The maximum number of descriptors that this pollset can hold |
p | The pool from which to allocate the pollset |
flags | Optional flags to modify the operation of the pollset. |
Set up a pollset object
pollset | The pointer in which to return the newly created object |
size | The maximum number of descriptors that this pollset can hold |
p | The pool from which to allocate the pollset |
flags | Optional flags to modify the operation of the pollset. |
method | Poll method to use. See apr_pollset_method_e. If this method cannot be used, the default method will be used unless the APR_POLLSET_NODEFAULT flag has been specified. |
Destroy a pollset object
pollset | The pollset to destroy |
Add a socket or file descriptor to a pollset
pollset | The pollset to which to add the descriptor |
descriptor | The descriptor to add |
Remove a descriptor from a pollset
pollset | The pollset from which to remove the descriptor |
descriptor | The descriptor to remove |
Block for activity on the descriptor(s) in a pollset
pollset | The pollset to use |
timeout | The amount of time in microseconds to wait. This is a maximum, not a minimum. If a descriptor is signalled, the function will return before this time. If timeout is negative, the function will block until a descriptor is signalled or until apr_pollset_wakeup() has been called. |
num | Number of signalled descriptors (output parameter) |
descriptors | Array of signalled descriptors (output parameter) |
Interrupt the blocked apr_pollset_poll() call.
pollset | The pollset to use |
Poll the descriptors in the poll structure
aprset | The poll structure we will be using. |
numsock | The number of descriptors we are polling |
nsds | The number of descriptors signalled (output parameter) |
timeout | The amount of time in microseconds to wait. This is a maximum, not a minimum. If a descriptor is signalled, the function will return before this time. If timeout is negative, the function will block until a descriptor is signalled or until apr_pollset_wakeup() has been called. |
Set up a pollcb object
pollcb | The pointer in which to return the newly created object |
size | The maximum number of descriptors that a single _poll can return. |
p | The pool from which to allocate the pollcb |
flags | Optional flags to modify the operation of the pollcb. |
Set up a pollcb object
pollcb | The pointer in which to return the newly created object |
size | The maximum number of descriptors that a single _poll can return. |
p | The pool from which to allocate the pollcb |
flags | Optional flags to modify the operation of the pollcb. |
method | Poll method to use. See apr_pollset_method_e. If this method cannot be used, the default method will be used unless the APR_POLLSET_NODEFAULT flag has been specified. |
Add a socket or file descriptor to a pollcb
pollcb | The pollcb to which to add the descriptor |
descriptor | The descriptor to add |
Remove a descriptor from a pollcb
pollcb | The pollcb from which to remove the descriptor |
descriptor | The descriptor to remove |
Block for activity on the descriptor(s) in a pollcb
pollcb | The pollcb to use |
timeout | The amount of time in microseconds to wait. This is a maximum, not a minimum. If a descriptor is signalled, the function will return before this time. If timeout is negative, the function will block until a descriptor is signalled. |
func | Callback function to call for each active descriptor. |
baton | Opaque baton passed to the callback function. |
APR_DECLARE | ( | const char * | ) |
Return a printable representation of the pollset method.
pollset | The pollset to use |
Return a printable representation of the default pollset method (APR_POLLSET_DEFAULT).
apr_pool_t char ** baton |
Definition at line 404 of file apr_poll.h.
Definition at line 223 of file apr_poll.h.
apr_interval_time_t apr_int32_t const apr_pollfd_t** descriptors |
Definition at line 266 of file apr_poll.h.
apr_uint32_t apr_pool_t apr_uint32_t flags |
Definition at line 148 of file apr_poll.h.
Definition at line 404 of file apr_poll.h.
apr_uint32_t apr_pool_t apr_uint32_t apr_pollset_method_e method |
Definition at line 185 of file apr_poll.h.
apr_int32_t apr_int32_t* nsds |
Definition at line 296 of file apr_poll.h.
apr_interval_time_t apr_int32_t* num |
Definition at line 266 of file apr_poll.h.
apr_int32_t numsock |
Definition at line 296 of file apr_poll.h.
apr_uint32_t apr_pool_t* p |
Definition at line 148 of file apr_poll.h.
apr_size_t size |
Definition at line 148 of file apr_poll.h.
Definition at line 266 of file apr_poll.h.