Function ouster::sdk::pcap::get_stream_info(const std::string&, const std::function<void(uint64_t current, uint64_t delta, uint64_t total)>&, int, int)
Defined in File os_pcap.h
Function Documentation
-
std::shared_ptr<StreamInfo> ouster::sdk::pcap::get_stream_info(const std::string &file, const std::function<void(uint64_t current, uint64_t delta, uint64_t total)> &progress_callback, int packets_per_callback, int packets_to_process = -1)
Return the information about network streams in a pcap file.
- Parameters:
file[in] – The pcap file to read.
progress_callback[in] – A callback to invoke after each packet is scanned current: The current file offset delta: The delta in file offset total: The total size of the file
packets_per_callback[in] – Callback every n packets
packets_to_process[in] – Number of packets to process < 0 for all of them
- Returns:
A pointer to the resulting stream_info