Get basic Naett requests to work (the store works in https mode)

This commit is contained in:
Henrik Rydgård committed 2023-07-21 10:28:17 +02:00
1 parent 010c58231b
commit fbd980bee6
12 files changed
+202 -17

No files matched your search

+7
View File
@@ -30,8 +30,11 @@
#include "Common/Log.h"
#include "Common/TimeUtil.h"
#include "ext/naett/naett.h"
namespace net {
int g_refCount = 0;
void Init()
{
@@ -40,6 +43,10 @@ void Init()
WSADATA wsaData = {0};
WSAStartup(MAKEWORD(2, 2), &wsaData);
#endif
if (g_refCount == 0) {
naettInit(NULL);
}
g_refCount++;
}
void Shutdown()