From 8e20cb325d5bc83551b9bf22b6067624dab86888 Mon Sep 17 00:00:00 2001 From: trawick Date: Sun, 30 Nov 2003 16:47:29 +0000 Subject: Add apr_socket_type_get() for retrieving the type (e.g., stream) of the socket. Submitted by: Philippe M. Chiasson Reviewed by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64801 13f79535-47bb-0310-9956-ffa450edef68 --- include/apr_network_io.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/apr_network_io.h') 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 -- cgit v1.2.1