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 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_core/slice.h"
18 #include "roc_core/stddefs.h"
19 #include "roc_packet/address.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_
Root namespace.
Address src_addr
Source address.
Definition: udp.h:27
Network address.
Definition: address.h:24
Commonly used types and functions.
Network address.
UDP packet.
Definition: udp.h:25
Slice.
uv_udp_send_t request
Sender request state.
Definition: udp.h:33
Address dst_addr
Destination address.
Definition: udp.h:30