mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-17 22:31:21 +00:00
Cross-platform threading, sockets updates, and control stream implementation, and various other fixes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <WinSock2.h>
|
||||
#include <Windows.h>
|
||||
#define LastSocketError() WSAGetLastError()
|
||||
#else
|
||||
#define SOCKET int
|
||||
@@ -12,4 +12,5 @@
|
||||
|
||||
#define IP_ADDRESS unsigned int
|
||||
|
||||
SOCKET connectTcpSocket(IP_ADDRESS dstaddr, unsigned short port);
|
||||
SOCKET connectTcpSocket(IP_ADDRESS dstaddr, unsigned short port);
|
||||
int enableNoDelay(SOCKET s);
|
||||
Reference in New Issue
Block a user