diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-11 20:14:09 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-11 20:14:09 +0200 |
commit | b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b (patch) | |
tree | aa502d70d9969c333ccf9e70d55fd6dea41623c2 /libaxl_close.3 | |
parent | Fix error checking (diff) | |
download | libaxl-b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b.tar.gz libaxl-b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b.tar.bz2 libaxl-b56c78b9251806c5e5cd3a5fa5d1f6e8e3de351b.tar.xz |
Misc, mainly connect stuff
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libaxl_close.3 | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/libaxl_close.3 b/libaxl_close.3 new file mode 100644 index 0000000..f3e5642 --- /dev/null +++ b/libaxl_close.3 @@ -0,0 +1,46 @@ +.TH libaxl_close 3 libaxl +.SH NAME +libaxl_close - Deallocate and close connection +.SH SYNOPSIS +.nf +#include <libaxl.h> + +int libaxl_close(LIBAXL_CONNECTION *\fIconn\fP); +.fi +.SH DESCRIPTION +The +.BR libaxl_close () +function deallocates the connection record +specified in the +.I conn +parameter, and closes the file descriptor of +the connection (without first shutting down +the connection). +.PP +If +.I conn +is +.IR NULL , +the function will return 0 without doing +anything. +.SH RETURN VALUE +The +.BR libaxl_close () +function returns 0 upon completion except if there +the file descriptor could not be closed or if there +was an asynchronous failure. +.SH ERRORS +The +.BR libaxl_close () +function can fail if for any reason specified +for the +.BR close (3) +function, and will in these cases return +.IR LIBAXL_ERROR_SYSTEM . +.SH NOTES +None. +.SH SEE ALSO +.BR libaxl_marshal (3), +.BR libaxl_fileno (3), +.BR libaxl_detach (3), +.BR libaxl_attach (3) |