Cleanup a bunch of the code and the interface itself

This commit is contained in:
Cameron Gutman
2014-01-20 19:11:25 -05:00
parent 3b057e4a6b
commit d6c77b0323
18 changed files with 473 additions and 126 deletions
+5 -3
View File
@@ -1,5 +1,7 @@
#pragma once
#include "Limelight.h"
#ifdef _WIN32
#include <Windows.h>
#define LastSocketError() WSAGetLastError()
@@ -16,8 +18,8 @@
#define closesocket(x) close(x)
#endif
#define IP_ADDRESS unsigned int
SOCKET connectTcpSocket(IP_ADDRESS dstaddr, unsigned short port);
SOCKET bindUdpSocket(unsigned short port);
int enableNoDelay(SOCKET s);
int enableNoDelay(SOCKET s);
int initializePlatformSockets(void);
void cleanupPlatformSockets(void);