diff options
author | Joe Orton <notroj@users.noreply.github.com> | 2004-10-02 19:38:59 +0000 |
---|---|---|
committer | Joe Orton <notroj@users.noreply.github.com> | 2004-10-02 19:38:59 +0000 |
commit | 6b481ae6548ea00a8285deab9e674925853b107d (patch) | |
tree | 51e55a698b4d698ff8835cd383661c964865897a /src/ne_socket.h | |
parent | 1e650d31f1825e3c76cdffb5b017226aef93c815 (diff) | |
download | neon-git-6b481ae6548ea00a8285deab9e674925853b107d.tar.gz |
Merge trunk up to current neon CVS HEAD.
Diffstat (limited to 'src/ne_socket.h')
-rw-r--r-- | src/ne_socket.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/ne_socket.h b/src/ne_socket.h index 4da0c0c..a684e6a 100644 --- a/src/ne_socket.h +++ b/src/ne_socket.h @@ -1,6 +1,6 @@ /* socket handling interface - Copyright (C) 1999-2003, Joe Orton <joe@manyfish.co.uk> + Copyright (C) 1999-2004, 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 @@ -36,7 +36,7 @@ BEGIN_NEON_DECLS #define NE_SOCK_CLOSED (-3) /* Connection was reset (e.g. server crashed) */ #define NE_SOCK_RESET (-4) -/* Secure connection was subject to possible truncation attack. */ +/* Secure connection was closed without proper SSL shutdown. */ #define NE_SOCK_TRUNC (-5) /* ne_socket represents a TCP socket. */ @@ -57,7 +57,7 @@ int ne_sock_init(void); /* Shutdown any underlying libraries. */ void ne_sock_exit(void); -/* Resolve the given hostname. 'flags' are currently ignored. Hex +/* Resolve the given hostname. 'flags' must be zero. Hex * string IPv6 addresses (e.g. `::1') may be enclosed in brackets * (e.g. `[::1]'). */ ne_sock_addr *ne_addr_resolve(const char *hostname, int flags); @@ -102,6 +102,9 @@ ne_inet_addr *ne_iaddr_make(ne_iaddr_type type, const unsigned char *raw); * are not equal. */ int ne_iaddr_cmp(const ne_inet_addr *i1, const ne_inet_addr *i2); +/* Returns the type of the given network address. */ +ne_iaddr_type ne_iaddr_typeof(const ne_inet_addr *ia); + /* Prints the string representation of network address 'ia' into the * 'buffer', which is of size 'bufsiz'. Returns 'buffer'. */ char *ne_iaddr_print(const ne_inet_addr *ia, char *buffer, size_t bufsiz); |