Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
udp.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 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/target_libuv/roc_packet/udp.h
10
//! @brief UDP packet.
11
12
#ifndef ROC_PACKET_UDP_H_
13
#define ROC_PACKET_UDP_H_
14
15
#include <uv.h>
16
17
#include "
roc_address/socket_addr.h
"
18
#include "
roc_core/slice.h
"
19
#include "
roc_core/stddefs.h
"
20
21
namespace
roc
{
22
namespace
packet {
23
24
//! UDP packet.
25
struct
UDP
{
26
//! Source address.
27
address::SocketAddr
src_addr
;
28
29
//! Destination address.
30
address::SocketAddr
dst_addr
;
31
32
//! Sender request state.
33
uv_udp_send_t
request
;
34
};
35
36
}
// namespace packet
37
}
// namespace roc
38
39
#endif
// ROC_PACKET_UDP_H_
roc::address::SocketAddr
Socket address.
Definition:
socket_addr.h:26
roc
Root namespace.
slice.h
Slice.
socket_addr.h
Socket address.
stddefs.h
Commonly used types and functions.
roc::packet::UDP
UDP packet.
Definition:
udp.h:25
roc::packet::UDP::src_addr
address::SocketAddr src_addr
Source address.
Definition:
udp.h:27
roc::packet::UDP::request
uv_udp_send_t request
Sender request state.
Definition:
udp.h:33
roc::packet::UDP::dst_addr
address::SocketAddr dst_addr
Destination address.
Definition:
udp.h:30
roc_packet
target_libuv
roc_packet
udp.h
Generated by
1.9.1