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();
|
||||||
~JNetwork();
|
~JNetwork();
|
||||||
void Update();
|
void Update();
|
||||||
|
void getServerIp(string& aString);
|
||||||
|
|
||||||
int connect(string serverIP = "");
|
int connect(const string& serverIP = "");
|
||||||
bool isConnected();
|
bool isConnected();
|
||||||
bool isServer() { return serverIP == ""; };
|
bool isServer() { return serverIP == ""; };
|
||||||
static void ThreadProc(void* param);
|
static void ThreadProc(void* param);
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
#include "../include/DebugRoutines.h"
|
#include "../include/DebugRoutines.h"
|
||||||
#include "../include/JNetwork.h"
|
#include "../include/JNetwork.h"
|
||||||
#include <boost/date_time/posix_time/posix_time.hpp>
|
|
||||||
|
|
||||||
#if defined (WIN32) || defined (LINUX)
|
#if defined (WIN32) || defined (LINUX)
|
||||||
#else
|
#else
|
||||||
@@ -192,7 +191,7 @@ void JNetwork::ThreadProc(void* param)
|
|||||||
#ifdef LINUX
|
#ifdef LINUX
|
||||||
// erwan 2013/01 added android check because of a compilation error
|
// erwan 2013/01 added android check because of a compilation error
|
||||||
#ifndef ANDROID
|
#ifndef ANDROID
|
||||||
boost::this_thread::sleep(1);
|
boost::this_thread::sleep(boost::posix_time::milliseconds(1));
|
||||||
#endif
|
#endif
|
||||||
#elif WIN32
|
#elif WIN32
|
||||||
// boost::this_thread::sleep(boost::posix_time::microseconds(10));
|
// boost::this_thread::sleep(boost::posix_time::microseconds(10));
|
||||||
|
|||||||
Reference in New Issue
Block a user