Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
connection_data.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_sdp/connection_data.h
10
//! @brief Connection field in a SDP.
11
12
#ifndef ROC_SDP_CONNECTION_DATA_H_
13
#define ROC_SDP_CONNECTION_DATA_H_
14
15
#include "
roc_address/socket_addr.h
"
16
#include "
roc_core/list_node.h
"
17
#include "
roc_core/log.h
"
18
#include "
roc_core/string_buffer.h
"
19
#include "
roc_core/string_builder.h
"
20
21
namespace
roc
{
22
namespace
sdp {
23
24
//! SDP connection data field.
25
class
ConnectionData
{
26
public
:
27
//! Initialize empty connection data.
28
ConnectionData
();
29
30
//! Clear all fields.
31
void
clear
();
32
33
//! Check and set connection address from a string.
34
bool
35
set_connection_address
(
address::AddrFamily
addrtype,
const
char
* str,
size_t
str_len);
36
37
//! The SocketAddr of the ConnectionData.
38
const
address::SocketAddr
&
connection_address
()
const
;
39
40
private
:
41
address::SocketAddr
connection_address_;
42
};
43
44
}
// namespace sdp
45
}
// namespace roc
46
47
#endif
// ROC_SDP_CONNECTION_DATA_H_
roc::address::SocketAddr
Socket address.
Definition
socket_addr.h:25
roc::sdp::ConnectionData
SDP connection data field.
Definition
connection_data.h:25
roc::sdp::ConnectionData::set_connection_address
bool set_connection_address(address::AddrFamily addrtype, const char *str, size_t str_len)
Check and set connection address from a string.
roc::sdp::ConnectionData::connection_address
const address::SocketAddr & connection_address() const
The SocketAddr of the ConnectionData.
roc::sdp::ConnectionData::ConnectionData
ConnectionData()
Initialize empty connection data.
roc::sdp::ConnectionData::clear
void clear()
Clear all fields.
list_node.h
Linked list node.
log.h
Logging.
roc::address::AddrFamily
AddrFamily
Address family.
Definition
addr_family.h:19
roc
Root namespace.
socket_addr.h
Socket address.
string_buffer.h
String buffer.
string_builder.h
String builder.
roc_sdp
connection_data.h
Generated by
1.9.7