1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Chenges (networking for PG, minor fixes)

This commit is contained in:
mateuszb
2010-09-03 18:42:54 +00:00
parent dc0cdf68b6
commit 4ba3c68ced
12 changed files with 379 additions and 165 deletions

View File

@@ -20,6 +20,7 @@
#include "../hch/CHeroHandler.h"
#include "../hch/CTownHandler.h"
#include "../hch/CCampaignHandler.h"
#include "NetPacks.h"
/*
@@ -219,6 +220,16 @@ void CConnection::reportState(CLogger &out)
}
}
CPack * CConnection::retreivePack()
{
CPack *ret = NULL;
boost::unique_lock<boost::mutex> lock(*rmx);
tlog5 << "Listening... ";
*this >> ret;
tlog5 << "\treceived server message of type " << typeid(*ret).name() << std::endl;
return ret;
}
CSaveFile::CSaveFile( const std::string &fname )
:sfile(NULL)
{