diff options
author | lurchi <lurchi@strangeplace.net> | 2018-06-24 23:31:07 +0200 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2018-06-24 23:31:07 +0200 |
commit | c38455c65f9968ccf7e870c3cce30fa19f319376 (patch) | |
tree | 523075af0d81a9f460d60b90b51557ad83bd5b42 /src/util/resolver.h | |
parent | 92e03f9117f5dc29909d73707897d28d8e27e048 (diff) | |
download | gnunet-c38455c65f9968ccf7e870c3cce30fa19f319376.tar.gz gnunet-c38455c65f9968ccf7e870c3cce30fa19f319376.zip |
use the asynchronous DNS resolution API (getaddrinfo_a) in the resolver module
Diffstat (limited to 'src/util/resolver.h')
-rw-r--r-- | src/util/resolver.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/util/resolver.h b/src/util/resolver.h index 0b137f085..a0f105afa 100644 --- a/src/util/resolver.h +++ b/src/util/resolver.h | |||
@@ -56,10 +56,37 @@ struct GNUNET_RESOLVER_GetMessage | |||
56 | */ | 56 | */ |
57 | int32_t af GNUNET_PACKED; | 57 | int32_t af GNUNET_PACKED; |
58 | 58 | ||
59 | /** | ||
60 | * identifies the request and is contained in the response message. The | ||
61 | * client has to match response to request by this identifier. | ||
62 | */ | ||
63 | uint32_t id GNUNET_PACKED; | ||
64 | |||
59 | /* followed by 0-terminated string for A/AAAA-lookup or | 65 | /* followed by 0-terminated string for A/AAAA-lookup or |
60 | by 'struct in_addr' / 'struct in6_addr' for reverse lookup */ | 66 | by 'struct in_addr' / 'struct in6_addr' for reverse lookup */ |
61 | 67 | ||
62 | }; | 68 | }; |
69 | |||
70 | |||
71 | struct GNUNET_RESOLVER_ResponseMessage | ||
72 | { | ||
73 | /** | ||
74 | * Type: GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE | ||
75 | */ | ||
76 | struct GNUNET_MessageHeader header; | ||
77 | |||
78 | /** | ||
79 | * identifies the request this message responds to. The client | ||
80 | * has to match response to request by this identifier. | ||
81 | */ | ||
82 | uint32_t id GNUNET_PACKED; | ||
83 | |||
84 | /* followed by 0-terminated string for response to a reverse lookup | ||
85 | * or by 'struct in_addr' / 'struct in6_addr' for response to | ||
86 | * A/AAAA-lookup | ||
87 | */ | ||
88 | }; | ||
89 | |||
63 | GNUNET_NETWORK_STRUCT_END | 90 | GNUNET_NETWORK_STRUCT_END |
64 | 91 | ||
65 | #endif | 92 | #endif |