If a socket manager finds winsock uninitialized, it will initialize it and remember to deinitialize it at cleanup

This commit is contained in:
2025-11-26 16:30:59 +01:00
parent bb753ad8ee
commit 5706f12298
5 changed files with 83 additions and 6 deletions
+6
View File
@@ -530,6 +530,12 @@ typedef struct {
ClientSecureContext client_secure_context;
ServerSecureContext server_secure_context;
// If the socket manager needed to initialize some
// global state for its initialization, this flag
// will be set so that it will remember to cleanup
// that state during deinitialization.
bool global_cleanup;
// Array of sockets. Structs with state FREE
// are unused.
int num_used;