Enable media streaming mode for 802.11 WLAN interfaces on Windows

This commit is contained in:
Cameron Gutman
2020-08-11 22:10:42 -07:00
parent f2c1d03d8e
commit 5ddd53e17f
3 changed files with 73 additions and 0 deletions

View File

@@ -6,6 +6,8 @@
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <wlanapi.h>
#include <timeapi.h>
#define SetLastSocketError(x) WSASetLastError(x)
#define LastSocketError() WSAGetLastError()
@@ -63,5 +65,8 @@ void closeSocket(SOCKET s);
int isPrivateNetworkAddress(struct sockaddr_storage* address);
int pollSockets(struct pollfd* pollFds, int pollFdsCount, int timeoutMs);
void enterLowLatencyMode(void);
void exitLowLatencyMode(void);
int initializePlatformSockets(void);
void cleanupPlatformSockets(void);