aboutsummaryrefslogtreecommitdiff
path: root/client/libacron/include/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/libacron/include/net.h')
-rw-r--r--client/libacron/include/net.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/libacron/include/net.h b/client/libacron/include/net.h
index 03be12f..6f5619a 100644
--- a/client/libacron/include/net.h
+++ b/client/libacron/include/net.h
@@ -65,10 +65,12 @@ LIBAC_EXPORT int ac_connect(ac_connection_parameters_t parameters, void **out);
* Disconnect the connection.
* The user must manually disconnect the socket passed in during ac_connect.
* @param connection A non-NULL and connected connection passed as-is from ac_connect.
+ * @param force By default (false), libac will gracefully close the socket by writing something to it. If force is true,
+ * libac will directly free any internal structures without writing anything.
* @return AC_E_OK or an error code. When failed, connection is undefined. When succeeds, connection is freed and invalid.
* MT-Unsafe
*/
-LIBAC_EXPORT int ac_disconnect(void *connection);
+LIBAC_EXPORT int ac_disconnect(void *connection, bool force);
/**
* Blocks the current thread until a new response or event arrives.