group__apr__poll.html
来自「apr函数库使用手册」· HTML 代码 · 共 601 行 · 第 1/2 页
HTML
601 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Apache Portable Runtime: Poll Routines</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
<h1>Poll Routines</h1><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>union </td><td class="memItemRight" valign=bottom><a class="el" href="unionapr__descriptor.html">apr_descriptor</a></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>struct </td><td class="memItemRight" valign=bottom><a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a></td></tr>
<tr><td colspan=2><br><h2>Defines</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga8">APR_POLLIN</a> 0x001 /**< Can read without blocking */</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga9">APR_POLLPRI</a> 0x002 /**< Priority data available */</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga10">APR_POLLOUT</a> 0x004 /**< Can write without blocking */</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga11">APR_POLLERR</a> 0x010 /**< Pending error */</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga12">APR_POLLHUP</a> 0x020 /**< Hangup occurred */</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga13">APR_POLLNVAL</a> 0x040 /**< Descriptior invalid */</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>#define </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga14">APR_POLLSET_THREADSAFE</a> 0x001 /**< Adding or Removing a Descriptor is thread safe */</td></tr>
<tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga0">apr_pollfd_t</a></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="group__apr__poll.html#ga1">apr_pollset_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga1">apr_pollset_t</a></td></tr>
<tr><td colspan=2><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top>enum </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga15">apr_datatype_e</a> { <a class="el" href="group__apr__poll.html#gga15a9">APR_NO_DESC</a>,
<a class="el" href="group__apr__poll.html#gga15a10">APR_POLL_SOCKET</a>,
<a class="el" href="group__apr__poll.html#gga15a11">APR_POLL_FILE</a>,
<a class="el" href="group__apr__poll.html#gga15a12">APR_POLL_LASTDESC</a>
}</td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga2">apr_pollset_create</a> (<a class="el" href="group__apr__poll.html#ga1">apr_pollset_t</a> **pollset, apr_uint32_t size, <a class="el" href="group__apr__pools.html#ga0">apr_pool_t</a> *p, apr_uint32_t flags)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga3">apr_pollset_destroy</a> (<a class="el" href="group__apr__poll.html#ga1">apr_pollset_t</a> *pollset)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga4">apr_pollset_add</a> (<a class="el" href="group__apr__poll.html#ga1">apr_pollset_t</a> *pollset, const <a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a> *descriptor)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga5">apr_pollset_remove</a> (<a class="el" href="group__apr__poll.html#ga1">apr_pollset_t</a> *pollset, const <a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a> *descriptor)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga6">apr_pollset_poll</a> (<a class="el" href="group__apr__poll.html#ga1">apr_pollset_t</a> *pollset, <a class="el" href="group__apr__time.html#ga3">apr_interval_time_t</a> timeout, apr_int32_t *num, const <a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a> **descriptors)</td></tr>
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="group__apr__errno.html#ga0">apr_status_t</a> </td><td class="memItemRight" valign=bottom><a class="el" href="group__apr__poll.html#ga7">apr_poll</a> (<a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a> *aprset, apr_int32_t numsock, apr_int32_t *nsds, <a class="el" href="group__apr__time.html#ga3">apr_interval_time_t</a> timeout)</td></tr>
</table>
<hr><h2>Define Documentation</h2>
<a class="anchor" name="ga11" doxytag="apr_poll.h::APR_POLLERR" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_POLLERR 0x010 /**< Pending error */ </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Pending error </td>
</tr>
</table>
<a class="anchor" name="ga12" doxytag="apr_poll.h::APR_POLLHUP" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_POLLHUP 0x020 /**< Hangup occurred */ </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Hangup occurred </td>
</tr>
</table>
<a class="anchor" name="ga8" doxytag="apr_poll.h::APR_POLLIN" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_POLLIN 0x001 /**< Can read without blocking */ </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Can read without blocking </td>
</tr>
</table>
<a class="anchor" name="ga13" doxytag="apr_poll.h::APR_POLLNVAL" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_POLLNVAL 0x040 /**< Descriptior invalid */ </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Descriptior invalid </td>
</tr>
</table>
<a class="anchor" name="ga10" doxytag="apr_poll.h::APR_POLLOUT" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_POLLOUT 0x004 /**< Can write without blocking */ </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Can write without blocking </td>
</tr>
</table>
<a class="anchor" name="ga9" doxytag="apr_poll.h::APR_POLLPRI" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_POLLPRI 0x002 /**< Priority data available */ </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Priority data available </td>
</tr>
</table>
<a class="anchor" name="ga14" doxytag="apr_poll.h::APR_POLLSET_THREADSAFE" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> #define APR_POLLSET_THREADSAFE 0x001 /**< Adding or Removing a Descriptor is thread safe */ </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Adding or Removing a Descriptor is thread safe </td>
</tr>
</table>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="ga0" doxytag="apr_poll.h::apr_pollfd_t" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> typedef struct <a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a> <a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
<dl compact><dt><b>See also:</b></dt><dd><a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a> </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="ga1" doxytag="apr_poll.h::apr_pollset_t" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> typedef struct <a class="el" href="group__apr__poll.html#ga1">apr_pollset_t</a> <a class="el" href="group__apr__poll.html#ga1">apr_pollset_t</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Opaque structure used for pollset API </td>
</tr>
</table>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="ga15" doxytag="apr_poll.h::apr_datatype_e" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> enum <a class="el" href="group__apr__poll.html#ga15">apr_datatype_e</a> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Used in <a class="el" href="structapr__pollfd__t.html">apr_pollfd_t</a> to determine what the <a class="el" href="unionapr__descriptor.html">apr_descriptor</a> is <dl compact><dt><b>Enumeration values: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em><a class="anchor" name="gga15a9" doxytag="APR_NO_DESC" ></a>APR_NO_DESC</em> </td><td>
nothing here </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga15a10" doxytag="APR_POLL_SOCKET" ></a>APR_POLL_SOCKET</em> </td><td>
descriptor refers to a socket </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga15a11" doxytag="APR_POLL_FILE" ></a>APR_POLL_FILE</em> </td><td>
descriptor refers to a file </td></tr>
<tr><td valign=top><em><a class="anchor" name="gga15a12" doxytag="APR_POLL_LASTDESC" ></a>APR_POLL_LASTDESC</em> </td><td>
descriptor is the last one in the list </td></tr>
</table>
</dl>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?