diff --git a/include/nsysnet/misc.h b/include/nsysnet/misc.h index df2d8694f..26713e542 100644 --- a/include/nsysnet/misc.h +++ b/include/nsysnet/misc.h @@ -10,9 +10,23 @@ extern "C" { #endif +typedef enum +{ + //! Prevents closing nsysnet sockets during socketclose_all + //! Note: No-op if security level is prod + SOLIB_OPT_AVOID_CLOSE_ALL = 0x3000, +} SOLIBOpt; +WUT_CHECK_SIZE(SOLIBOpt, 4); + int set_multicast_state(BOOL multicastEnable); +int +socketclose_all(void); + +int +setsocklibopt(SOLIBOpt opt, uint32_t value); + #ifdef __cplusplus } #endif