| | |
| | | } |
| | | |
| | | |
| | | |
| | | int main(int argc, char **argv) { |
| | | std::cout<<__DATE__<<" "<<__TIME__<<std::endl; |
| | | std::cout << __DATE__ << " " << __TIME__ << std::endl; |
| | | SAVE_APP_ARGS |
| | | |
| | | #ifdef GLOG |
| | | ENABLEGLOG(GET_STR_CONFIG("logPath").c_str()); |
| | | ENABLEGLOG(GET_STR_CONFIG("logPath").c_str()); |
| | | #endif |
| | | |
| | | appPref.setLongData("gpu.index", 1); |
| | | int gindx = atoi(argv[1]) % 2; |
| | | DBG(gindx); |
| | | appPref.setLongData("gpu.index", gindx); |
| | | appPref.setIntData("show.image", 0); |
| | | |
| | | //todo |
| | | appPref.setIntData("CamStart", atoi(argv[1])); |
| | | appPref.setIntData("CamStep", atoi(argv[2])); |
| | | appPref.setIntData("RpcServerPort", atoi(argv[3])); |
| | | |
| | | appPref.setStringData("user.loop.absolute.path", appConfig.getStringProperty("cutPath")); |
| | | IceRpcServer<RtspAnalysManager> server("RtspAnalysServer", 10009, "tcp"); |
| | | IceRpcServer<RtspAnalysManager> server("RtspAnalysServer", appPref.getIntData("RpcServerPort"), "tcp"); |
| | | server.setMessageSizeMax(1024 * 1024 * 50); |
| | | server.setPoolInitSize(1); |
| | | server.setPoolMaxSize(1); |