mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 07:34:19 +00:00
FS-10167: Fixed sockets in libks, testsock now runs correctly under windows
This commit is contained in:
1 parent
ad968eda6f
commit
be451e4305
2 files changed
+24
-7
No files matched your search
+12
-1
@@ -73,7 +73,14 @@ KS_DECLARE(ks_status_t) ks_init(void)
|
||||
ks_ssl_init_ssl_locks();
|
||||
ks_global_pool();
|
||||
ks_rng_init();
|
||||
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
WSADATA wsaData;
|
||||
WORD wVersionRequested = MAKEWORD(2, 2);
|
||||
|
||||
WSAStartup(wVersionRequested, &wsaData);
|
||||
#endif
|
||||
|
||||
return KS_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -81,6 +88,10 @@ KS_DECLARE(ks_status_t) ks_shutdown(void)
|
||||
{
|
||||
ks_status_t status = KS_STATUS_SUCCESS;
|
||||
|
||||
#ifdef __WINDOWS__
|
||||
WSACleanup();
|
||||
#endif
|
||||
|
||||
ks_ssl_destroy_ssl_locks();
|
||||
//ks_rng_shutdown();
|
||||
|
||||
|
||||
Reference in new issue
Block a user