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
17
#include "
roc_address/endpoint_uri.h
"
18
#include "
roc_address/socket_addr.h
"
19
20
namespace
roc
{
21
namespace
netio {
22
23
//! Resolver request.
24
struct
ResolverRequest
{
25
//! Endpoint with hostname to resolve for async_resolve().
26
const
address::EndpointUri
*
endpoint_uri
;
27
28
//! Resolved address to be filled by async_resolve().
29
address::SocketAddr
resolved_address
;
30
31
//! Successfully resolved.
32
bool
success
;
33
34
//! libuv request handle.
35
uv_getaddrinfo_t
handle
;
36
37
ResolverRequest
()
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_
roc::address::EndpointUri
Network endpoint URI.
Definition:
endpoint_uri.h:27
roc::address::SocketAddr
Socket address.
Definition:
socket_addr.h:26
endpoint_uri.h
Network endpoint URI.
roc
Root namespace.
socket_addr.h
Socket address.
roc::netio::ResolverRequest
Resolver request.
Definition:
resolver_request.h:24
roc::netio::ResolverRequest::resolved_address
address::SocketAddr resolved_address
Resolved address to be filled by async_resolve().
Definition:
resolver_request.h:29
roc::netio::ResolverRequest::success
bool success
Successfully resolved.
Definition:
resolver_request.h:32
roc::netio::ResolverRequest::endpoint_uri
const address::EndpointUri * endpoint_uri
Endpoint with hostname to resolve for async_resolve().
Definition:
resolver_request.h:26
roc::netio::ResolverRequest::handle
uv_getaddrinfo_t handle
libuv request handle.
Definition:
resolver_request.h:35
roc_netio
target_libuv
roc_netio
resolver_request.h
Generated by
1.9.1