Added missing .h and fixed the boost sleep, it works fine on linux now.
This commit is contained in:
@@ -38,8 +38,9 @@ public:
|
||||
JNetwork();
|
||||
~JNetwork();
|
||||
void Update();
|
||||
void getServerIp(string& aString);
|
||||
|
||||
int connect(string serverIP = "");
|
||||
int connect(const string& serverIP = "");
|
||||
bool isConnected();
|
||||
bool isServer() { return serverIP == ""; };
|
||||
static void ThreadProc(void* param);
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include "../include/DebugRoutines.h"
|
||||
#include "../include/JNetwork.h"
|
||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
||||
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
#else
|
||||
@@ -192,7 +191,7 @@ void JNetwork::ThreadProc(void* param)
|
||||
#ifdef LINUX
|
||||
// erwan 2013/01 added android check because of a compilation error
|
||||
#ifndef ANDROID
|
||||
boost::this_thread::sleep(1);
|
||||
boost::this_thread::sleep(boost::posix_time::milliseconds(1));
|
||||
#endif
|
||||
#elif WIN32
|
||||
// boost::this_thread::sleep(boost::posix_time::microseconds(10));
|
||||
|
||||
Reference in New Issue
Block a user