diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2010-01-11 10:23:06 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2010-01-11 10:23:06 +0000 |
commit | c5996b6746db2abf09d4f372b6e94a46ffd58c5b (patch) | |
tree | 7e6cff496538207627ef4761b729a64008191ecb /src/ne_socket.h | |
parent | da42c41d5adbd2810a205fd604670e307502a7cd (diff) | |
download | neon-c5996b6746db2abf09d4f372b6e94a46ffd58c5b.tar.gz |
* test/socket.c (ssl_closure, ssl_truncate): Don't expect clean
closure.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1780 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_socket.h')
-rw-r--r-- | src/ne_socket.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ne_socket.h b/src/ne_socket.h index fd6f571..e02e86c 100644 --- a/src/ne_socket.h +++ b/src/ne_socket.h @@ -1,6 +1,6 @@ /* socket handling interface - Copyright (C) 1999-2009, Joe Orton <joe@manyfish.co.uk> + Copyright (C) 1999-2010, 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 @@ -219,8 +219,10 @@ int ne_sock_fd(const ne_socket *sock); * must be destroyed by caller using ne_iaddr_free. */ ne_inet_addr *ne_sock_peer(ne_socket *sock, unsigned int *port); -/* Close the socket and destroy the socket object. Returns zero on - * success, or an errno value if close() failed. */ +/* Close the socket and destroy the socket object. If SSL is in use + * for the socket, a closure alert is sent to initiate a clean + * shutdown, but this function does not wait for the peer's response. + * Returns zero on success, or non-zero on failure. */ int ne_sock_close(ne_socket *sock); /* Return current error string for socket. */ |