diff options
author | Joe Orton <notroj@users.noreply.github.com> | 2006-02-16 18:38:25 +0000 |
---|---|---|
committer | Joe Orton <notroj@users.noreply.github.com> | 2006-02-16 18:38:25 +0000 |
commit | cf59d0d21c7d34eb6a038ff48531449ef80d91a2 (patch) | |
tree | 98371d8e1f6245b07afa5501e38589b8d5da5581 /src/ne_socket.h | |
parent | ae33c757cfd77831016465bbdbcc219b242df6ac (diff) | |
download | neon-git-cf59d0d21c7d34eb6a038ff48531449ef80d91a2.tar.gz |
* src/ne_socket.c, src/ne_socket.h (ne_sock_init, ne_sock_exit):
Refcount to allow multiple calls per process.
Diffstat (limited to 'src/ne_socket.h')
-rw-r--r-- | src/ne_socket.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ne_socket.h b/src/ne_socket.h index 92ab6ef..daff30d 100644 --- a/src/ne_socket.h +++ b/src/ne_socket.h @@ -1,6 +1,6 @@ /* socket handling interface - Copyright (C) 1999-2005, Joe Orton <joe@manyfish.co.uk> + Copyright (C) 1999-2006, Joe Orton <joe@manyfish.co.uk> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public @@ -49,12 +49,13 @@ typedef struct ne_sock_addr_s ne_sock_addr; typedef struct ne_inet_addr_s ne_inet_addr; #endif -/* While neon itself doesn't require per-process global - * initialization, some platforms do, and so does the OpenSSL - * library. */ +/* Perform process-global initialization of any libraries in use. + * Returns non-zero on error. */ int ne_sock_init(void); -/* Shutdown any underlying libraries. */ +/* Perform process-global shutdown of any libraries in use. This + * function only has effect when it has been called an equal number of + * times to ne_sock_init() for the process. */ void ne_sock_exit(void); /* Resolve the given hostname. 'flags' must be zero. Hex |