Function ouster::sdk::pcap::get_stream_info(PcapReader&, const std::function<void(uint64_t, uint64_t, uint64_t)>&, int, int)

Function Documentation

std::shared_ptr<StreamInfo> ouster::sdk::pcap::get_stream_info(PcapReader &pcap_reader, const std::function<void(uint64_t, uint64_t, uint64_t)> &progress_callback, int packets_per_callback, int packets_to_process = -1)

Return the information about network streams in a PcapReader and generate indicies (if the PcapReader is an IndexedPcapReader).

Parameters:
  • pcap_reader[in] – The PcapReader

  • 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