Use non-blocking sockets for JSON_server and MJPEG_server

This commit is contained in:
AlexeyAB
2019-11-04 14:39:20 +03:00
parent 4d9addedd7
commit 52e3bb252f
4 changed files with 38 additions and 3 deletions

View File

@ -70,6 +70,7 @@ extern "C" LIB_API void send_json_custom(char const* send_buf, int port, int tim
class Detector {
std::shared_ptr<void> detector_gpu_ptr;
std::deque<std::vector<bbox_t>> prev_bbox_vec_deque;
std::string _cfg_filename, _weight_filename;
public:
const int cur_gpu_id;
float nms = .4;