Cross-platform threading, sockets updates, and control stream implementation, and various other fixes

This commit is contained in:
Cameron Gutman
2014-01-18 18:53:50 -05:00
parent f02e916f6c
commit 103c052729
11 changed files with 443 additions and 8 deletions
+3 -2
View File
@@ -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);