summaryrefslogtreecommitdiff
path: root/include/apr_network_io.h
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-10-14 23:47:29 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2003-10-14 23:47:29 +0000
commite93de8614b9d6bc5ce1f75fea9676d1e3c70d127 (patch)
treeb8f4d4eaf3af94c8723aca707920d80f0091e843 /include/apr_network_io.h
parent1619491fe11c05a788c5ce5c940f5aed8f60b537 (diff)
downloadlibapr-e93de8614b9d6bc5ce1f75fea9676d1e3c70d127.tar.gz
Implement apr_socket_atmark, similar to socket_atmark except 1) it's
portable, and 2) the return value is passed by a boolean (int) ref, with errors returned as an apr_status_t. The question is, how portable? sys/sockio.h seems sufficent for me on hp/ux, solaris, linux, osx, and this works on Win32. The Netware and OS2 implementations are best guesses. Submitted by: Jim Jagielski and William Rowe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64684 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_network_io.h')
-rw-r--r--include/apr_network_io.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/apr_network_io.h b/include/apr_network_io.h
index b38fc9dc2..52061d4f3 100644
--- a/include/apr_network_io.h
+++ b/include/apr_network_io.h
@@ -662,6 +662,15 @@ APR_DECLARE(apr_status_t) apr_socket_timeout_get(apr_socket_t *sock,
apr_interval_time_t *t);
/**
+ * Query the specified socket if at the OOB/Urgent data mark
+ * @param sock The socket to query
+ * @param atmark Is set to true if socket is at the OOB/urgent mark,
+ * otherwise is set to false.
+ */
+APR_DECLARE(apr_status_t) apr_socket_atmark(apr_socket_t *sock,
+ int *atmark);
+
+/**
* Return an apr_sockaddr_t from an apr_socket_t
* @param sa The returned apr_sockaddr_t.
* @param which Which interface do we want the apr_sockaddr_t for?