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 
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.
28 
29  //! Destination address.
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_
Socket address.
Definition: socket_addr.h:26
Root namespace.
Slice.
Socket address.
Commonly used types and functions.
UDP packet.
Definition: udp.h:25
address::SocketAddr src_addr
Source address.
Definition: udp.h:27
uv_udp_send_t request
Sender request state.
Definition: udp.h:33
address::SocketAddr dst_addr
Destination address.
Definition: udp.h:30