Updates to Win32 code to port latest mega-glest features

This commit is contained in:
Mark Vejvoda
2010-03-20 00:22:17 +00:00
parent 965a7ac2ba
commit a731f9c2a9
2 changed files with 54 additions and 52 deletions

View File

@@ -14,11 +14,12 @@
#include <stdexcept>
#include "conversion.h"
#include "leak_dumper.h"
#include <time.h>
#include <strstream>
#include <algorithm>
#include "util.h"
#include "leak_dumper.h"
#define socklen_t int
@@ -155,7 +156,7 @@ const char* WSAGetLastErrorMessage(const char* pcMessagePrefix,
namespace Shared{ namespace Platform{
bool Socket::enableDebugText = true;
bool Socket::enableNetworkDebugInfo = true;
bool Socket::enableNetworkDebugInfo = true;
// =====================================================
// class Ip
@@ -747,7 +748,7 @@ void ClientSocket::connect(const Ip &ip, int port)
if(err < 0)
{
fprintf(stderr, "In [%s::%s] Before END sock = %d, err = %d, errno = %d\n",__FILE__,__FUNCTION__,sock,err,WSAGetLastError());
//throwException(szBuf);
//throwException(szBuf);
disconnectSocket();
}