Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
print_packet.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2015 Roc Streaming authors
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9//! @file roc_packet/print_packet.h
10//! @brief Print packet to console.
11
12#ifndef ROC_PACKET_PRINT_PACKET_H_
13#define ROC_PACKET_PRINT_PACKET_H_
14
15namespace roc {
16namespace packet {
17
18class Packet;
19
20//! Print flags.
21enum {
22 PrintHeaders = 0, //!< Print packet header.
23 PrintPayload = (1 << 0) //!< Print packet payload.
24};
25
26//! Print packet to stderr.
27void print_packet(const Packet& packet, int flags);
28
29} // namespace packet
30} // namespace roc
31
32#endif // ROC_PACKET_PRINT_PACKET_H_
void print_packet(const Packet &packet, int flags)
Print packet to stderr.
@ PrintHeaders
Print packet header.
@ PrintPayload
Print packet payload.
Root namespace.