Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
resolver_request.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_netio/target_libuv/roc_netio/resolver_request.h
10 //! @brief Resolver request.
11 
12 #ifndef ROC_NETIO_RESOLVER_REQUEST_H_
13 #define ROC_NETIO_RESOLVER_REQUEST_H_
14 
15 #include <uv.h>
16 
19 
20 namespace roc {
21 namespace netio {
22 
23 //! Resolver request.
25  //! Endpoint with hostname to resolve for async_resolve().
27 
28  //! Resolved address to be filled by async_resolve().
30 
31  //! Successfully resolved.
32  bool success;
33 
34  //! libuv request handle.
35  uv_getaddrinfo_t handle;
36 
38  : endpoint_uri(NULL)
39  , success(false) {
40  memset(&handle, 0, sizeof(handle));
41  }
42 };
43 
44 } // namespace netio
45 } // namespace roc
46 
47 #endif // ROC_NETIO_RESOLVER_REQUEST_H_
Network endpoint URI.
Definition: endpoint_uri.h:27
Socket address.
Definition: socket_addr.h:26
Network endpoint URI.
Root namespace.
Socket address.
address::SocketAddr resolved_address
Resolved address to be filled by async_resolve().
bool success
Successfully resolved.
const address::EndpointUri * endpoint_uri
Endpoint with hostname to resolve for async_resolve().
uv_getaddrinfo_t handle
libuv request handle.