Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
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 
15 namespace roc {
16 namespace packet {
17 
18 class Packet;
19 
20 //! Print flags.
21 enum {
22  PrintHeaders = 0, //!< Print packet header.
23  PrintPayload = (1 << 0) //!< Print packet payload.
24 };
25 
26 //! Print packet to stderr.
27 void 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.
Definition: print_packet.h:22
@ PrintPayload
Print packet payload.
Definition: print_packet.h:23
Root namespace.