Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
interface.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 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_address/interface.h
10 //! @brief Interface ID.
11 
12 #ifndef ROC_ADDRESS_INTERFACE_H_
13 #define ROC_ADDRESS_INTERFACE_H_
14 
15 namespace roc {
16 namespace address {
17 
18 //! Interface ID.
19 enum Interface {
20  //! Invalid interface.
22 
23  //! Interface that consolidated all types of streams (e.g. RTSP).
25 
26  //! Source packets of audio stream (e.g. RTP or RTP + RS8M).
28 
29  //! Repair packets of audio stream (e.g. RS8M).
31 
32  //! Control packets of audio stream (e.g. RTCP).
34 
35  //! Number of interfaces.
36  Iface_Max
37 };
38 
39 //! Get string name of the interface.
41 
42 } // namespace address
43 } // namespace roc
44 
45 #endif // ROC_ADDRESS_INTERFACE_H_
Interface
Interface ID.
Definition: interface.h:19
@ Iface_AudioSource
Source packets of audio stream (e.g. RTP or RTP + RS8M).
Definition: interface.h:27
@ Iface_AudioControl
Control packets of audio stream (e.g. RTCP).
Definition: interface.h:33
@ Iface_Consolidated
Interface that consolidated all types of streams (e.g. RTSP).
Definition: interface.h:24
@ Iface_AudioRepair
Repair packets of audio stream (e.g. RS8M).
Definition: interface.h:30
@ Iface_Max
Number of interfaces.
Definition: interface.h:36
@ Iface_Invalid
Invalid interface.
Definition: interface.h:21
const char * interface_to_str(Interface)
Get string name of the interface.
Root namespace.