#include #include #include #include #include "FaceDetectServerI.h" int main(int argc,char** argv) { std::cout<<__DATE__<<" "<<__TIME__<getProperties()->getProperty("user.face.identity"); std::string gpuIndex =ich->getProperties()->getProperty("user.gpu.index"); std::string adapterName = ich->getProperties()->getProperty("user.adapter.name"); int threadMax = atol(ich->getProperties()->getProperty("user.thread.max").c_str()); #endif ich->getProperties()->setProperty("Ice.ThreadPool.Server.SizeMax",to_string(threadMax)); appPref.setLongData("gpu.index",atol(gpuIndex.c_str())); appPref.setLongData("thread.max", threadMax); auto adapter = ich->createObjectAdapter(adapterName); adapter->add(new FaceDetectServerI(), Ice::stringToIdentity(identity)); adapter->activate(); ich->waitForShutdown(); return 0; }