summaryrefslogtreecommitdiff
path: root/include/apr_poll.h
diff options
context:
space:
mode:
authordreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2003-11-21 19:50:02 +0000
committerdreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2003-11-21 19:50:02 +0000
commit9a19d440248c849145517f3ce4e2de13c051cfd4 (patch)
treed8f9f13c1268ea597e33d17ee309c009e44b4b42 /include/apr_poll.h
parent7f77c2e1bbbd9e724add4b78285945395584d702 (diff)
downloadlibapr-9a19d440248c849145517f3ce4e2de13c051cfd4.tar.gz
Add back apr_poll as it shouldn't have been removed.
apr_poll is only intended for quick polling. More complex setups should use the pollset structure that now exists. testpoll commit coming shortly to reflect the change and test the pollset code. Brian - can you make sure the OS/2 code is OK? git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64781 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_poll.h')
-rw-r--r--include/apr_poll.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/apr_poll.h b/include/apr_poll.h
index b830e882e..13a6f9af1 100644
--- a/include/apr_poll.h
+++ b/include/apr_poll.h
@@ -176,6 +176,28 @@ APR_DECLARE(apr_status_t) apr_pollset_poll(apr_pollset_t *pollset,
apr_int32_t *num,
const apr_pollfd_t **descriptors);
+
+/**
+ * Poll the sockets in the poll structure
+ * @param aprset The poll structure we will be using.
+ * @param numsock The number of sockets we are polling
+ * @param nsds The number of sockets signalled.
+ * @param timeout The amount of time in microseconds to wait. This is
+ * a maximum, not a minimum. If a socket is signalled, we
+ * will wake up before this time. A negative number means
+ * wait until a socket is signalled.
+ * @remark
+ * <PRE>
+ * The number of sockets signalled is returned in the second argument.
+ *
+ * This is a blocking call, and it will not return until either a
+ * socket has been signalled, or the timeout has expired.
+ * </PRE>
+ */
+APR_DECLARE(apr_status_t) apr_poll(apr_pollfd_t *aprset, apr_int32_t numsock,
+ apr_int32_t *nsds,
+ apr_interval_time_t timeout);
+
/** @} */