| | |
| | | |
| | | |
| | | int WORKERS ; |
| | | std::string localUrl; |
| | | std::string remoteUrl; |
| | | |
| | | PropertiesConfig config("../data/config.txt"); |
| | |
| | | { |
| | | //环境变量初始化 |
| | | WORKERS = config.getInt("workers"); |
| | | localUrl = config.get("local_url"); |
| | | remoteUrl = config.get("remote_url"); |
| | | remoteUrl = config.get("client_url"); |
| | | |
| | | //海康设备环境初始化 |
| | | Netdisk_EnvConfig hcEnvConfig; |
| | | hcEnvConfig.libpath = config.get("hclib"); |
| | | hcEnvConfig.libpath = "../lib/hc"; |
| | | HCNetdisk::netdisk_init(&hcEnvConfig); |
| | | |
| | | |
| | |
| | | |
| | | initThreadPool(); |
| | | |
| | | startServer(localUrl.c_str()); |
| | | startServer(config.get("server_url").c_str()); |
| | | |
| | | |
| | | HCNetdisk::netdisk_deinit(); |