From 71364da9f4082be55d1c6159a7612512432dbe59 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 21 Sep 2021 10:58:02 -0400 Subject: [PATCH] fix typos add lokinet_udp_close --- include/lokinet/lokinet_udp.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/lokinet/lokinet_udp.h b/include/lokinet/lokinet_udp.h index 6142192df..54d7f0ed7 100644 --- a/include/lokinet/lokinet_udp.h +++ b/include/lokinet/lokinet_udp.h @@ -93,7 +93,16 @@ extern "C" const struct lokinet_udp_flowinfo* remote, const void* ptr, size_t len, - struct lokinet_ctx* ctx); + struct lokinet_context* ctx); + + /// @brief close a bound udp socket + /// closes all flows immediately + /// + /// @param socket_id the bound udp socket's id + /// + /// @param ctx lokinet context + void EXPORT + lokinet_udp_close(int socket_id, struct lokinet_context* ctx); #ifdef __cplusplus }