Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
addr_family.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 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/addr_family.h
10 //! @brief Address family.
11 
12 #ifndef ROC_ADDRESS_ADDR_FAMILY_H_
13 #define ROC_ADDRESS_ADDR_FAMILY_H_
14 
15 namespace roc {
16 namespace address {
17 
18 //! Address family.
19 enum AddrFamily {
20  Family_Unknown = 0, //!< Invalid.
21  Family_IPv4, //!< IPv4.
22  Family_IPv6 //!< IPv6.
23 };
24 
25 //! Convert address family to string.
26 const char* addr_family_to_str(AddrFamily family);
27 
28 } // namespace address
29 } // namespace roc
30 
31 #endif // ROC_ADDRESS_ADDR_FAMILY_H_
AddrFamily
Address family.
Definition: addr_family.h:19
@ Family_IPv6
IPv6.
Definition: addr_family.h:22
@ Family_Unknown
Invalid.
Definition: addr_family.h:20
@ Family_IPv4
IPv4.
Definition: addr_family.h:21
const char * addr_family_to_str(AddrFamily family)
Convert address family to string.
Root namespace.