Create common connect and bind zmq methods

This commit is contained in:
2020-09-24 08:33:45 +02:00
parent 259e3dd822
commit a5629616d9
3 changed files with 69 additions and 1 deletions
+5
View File
@@ -18,6 +18,11 @@ namespace BufferUtils
const std::string& filename_to_write);
void create_destination_folder(const std::string& output_file);
void* bind_socket(
void* ctx, const std::string& detector_name, const int source_id);
void* connect_socket(
void* ctx, const std::string& detector_name, const int source_id);
}
#endif //BUFFER_UTILS_HPP
+2
View File
@@ -38,6 +38,8 @@ namespace buffer_config {
const int BUFFER_UDP_US_TIMEOUT = 2 * 1000;
// HWM for live stream from buffer.
const int BUFFER_ZMQ_SNDHWM = 100;
// HWM for live stream from buffer.
const int BUFFER_ZMQ_RCVHWM = 100;
// IPC address of the live stream.
const std::string BUFFER_LIVE_IPC_URL = "ipc:///tmp/sf-live-";
// Number of image slots in ram buffer - 10 seconds should be enough