Function ouster::sdk::pcap::record_packet(RecordHandle&, const std::string&, const std::string&, int, int, const uint8_t *, size_t, uint64_t)¶
Defined in File os_pcap.h
Function Documentation¶
-
void ouster::sdk::pcap::record_packet(RecordHandle &handle, const std::string &src_ip, const std::string &dst_ip, int src_port, int dst_port, const uint8_t *buf, size_t buffer_size, uint64_t microsecond_timestamp)¶
Record a buffer to a multi sensor RecordHandle pcap file.
- Parameters:
handle[in] The record handle that record_initialize has initted.
src_ip[in] The source address to label the packets with.
dst_ip[in] The destination address to label the packets with.
src_port[in] The source port to label the packets with.
dst_port[in] The destination port to label the packets with.
buf[in] The buffer to record to the pcap file.
buffer_size[in] The size of the buffer to record to the pcap file.
microsecond_timestamp[in] The timestamp to record the packet as microseconds.