Skip to content

Commit 2d7efef

Browse files
nsysnet/misc: Add socketclose_all and setsocklibopt
1 parent 07ef427 commit 2d7efef

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎include/nsysnet/misc.h‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,23 @@
1010
extern "C" {
1111
#endif
1212

13+
typedef enum
14+
{
15+
//! Prevents closing nsysnet sockets during socketclose_all
16+
//! Note: No-op if security level is prod
17+
SOLIB_OPT_AVOID_CLOSE_ALL = 0x3000,
18+
} SocklibOpt;
19+
WUT_CHECK_SIZE(SocklibOpt, 4);
20+
1321
int
1422
set_multicast_state(BOOL multicastEnable);
1523

24+
int
25+
socketclose_all(void);
26+
27+
int
28+
setsocklibopt(SocklibOpt opt, uint32_t value);
29+
1630
#ifdef __cplusplus
1731
}
1832
#endif

0 commit comments

Comments
 (0)