changeset 28 | 9c1050bc8709 |
parent 15 | 9bbeace56269 |
child 30 | 7f8dd120933f |
--- a/src/sock.h Tue Mar 10 01:46:09 2009 +0200 +++ b/src/sock.h Tue Mar 10 02:34:11 2009 +0200 @@ -81,4 +81,11 @@ */ const struct error_info* sock_stream_error (struct sock_stream *sock); +/** + * Close and release the given socket, ignoring errors. It must not be used anymore after this. + * + * This is intended to be used to abort in case of errors, and does not close the connection cleanly. + */ +void sock_stream_release (struct sock_stream *sock); + #endif