summaryrefslogtreecommitdiff
path: root/include/apr_network_io.h
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2003-11-30 16:47:29 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2003-11-30 16:47:29 +0000
commit8e20cb325d5bc83551b9bf22b6067624dab86888 (patch)
tree047b6dd550e37aecbc1df713d6d54519bf4203b5 /include/apr_network_io.h
parent9309519700ca57eeb53c429eff122beb876a8c7b (diff)
downloadlibapr-8e20cb325d5bc83551b9bf22b6067624dab86888.tar.gz
Add apr_socket_type_get() for retrieving the type (e.g., stream)
of the socket. Submitted by: Philippe M. Chiasson <gozer cpan.org> Reviewed by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64801 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_network_io.h')
-rw-r--r--include/apr_network_io.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/apr_network_io.h b/include/apr_network_io.h
index 27e706f72..9449fdc81 100644
--- a/include/apr_network_io.h
+++ b/include/apr_network_io.h
@@ -727,7 +727,14 @@ APR_DECLARE(apr_status_t) apr_sockaddr_ip_get(char **addr,
APR_DECLARE(int) apr_sockaddr_equal(const apr_sockaddr_t *addr1,
const apr_sockaddr_t *addr2);
-
+/**
+* Return the type of the socket.
+* @param sock The socket to query.
+* @param type The returned type (e.g., SOCK_STREAM).
+*/
+APR_DECLARE(apr_status_t) apr_socket_type_get(apr_socket_t *sock,
+ int *type);
+
/**
* Given an apr_sockaddr_t and a service name, set the port for the service
* @param sockaddr The apr_sockaddr_t that will have its port set