diff --git a/JGE/include/JNetwork.h b/JGE/include/JNetwork.h index 0412bb9be..67a964705 100644 --- a/JGE/include/JNetwork.h +++ b/JGE/include/JNetwork.h @@ -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); diff --git a/JGE/src/JNetwork.cpp b/JGE/src/JNetwork.cpp index 934501e86..2573d177b 100644 --- a/JGE/src/JNetwork.cpp +++ b/JGE/src/JNetwork.cpp @@ -6,7 +6,6 @@ #include "../include/DebugRoutines.h" #include "../include/JNetwork.h" -#include #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));