diff options
author | Jeff Trawick <trawick@apache.org> | 2003-11-30 16:47:29 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2003-11-30 16:47:29 +0000 |
commit | 0f5aaf28e96c74252e60f80b712afd7b79c5309d (patch) | |
tree | 047b6dd550e37aecbc1df713d6d54519bf4203b5 /network_io/os2 | |
parent | 0111c4c0738a80fe1af1ca3628151674ad0f71b5 (diff) | |
download | apr-0f5aaf28e96c74252e60f80b712afd7b79c5309d.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: https://svn.apache.org/repos/asf/apr/apr/trunk@64801 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io/os2')
-rw-r--r-- | network_io/os2/sockets.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/network_io/os2/sockets.c b/network_io/os2/sockets.c index 66949b573..b58c046e7 100644 --- a/network_io/os2/sockets.c +++ b/network_io/os2/sockets.c @@ -240,6 +240,11 @@ APR_DECLARE(apr_status_t) apr_socket_connect(apr_socket_t *sock, } } +APR_DECLARE(apr_status_t) apr_socket_type_get(apr_socket_t *sock, int *type) +{ + *type = sock->type; + return APR_SUCCESS; +} APR_DECLARE(apr_status_t) apr_socket_data_get(void **data, const char *key, apr_socket_t *sock) |