diff options
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r-- | src/transport/plugin_transport_http.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h index 16da05c32..dd0bc4b9d 100644 --- a/src/transport/plugin_transport_http.h +++ b/src/transport/plugin_transport_http.h | |||
@@ -261,6 +261,39 @@ struct Plugin | |||
261 | }; | 261 | }; |
262 | 262 | ||
263 | /** | 263 | /** |
264 | * IPv4 addresses | ||
265 | */ | ||
266 | struct IPv4HttpAddress | ||
267 | { | ||
268 | /** | ||
269 | * IPv4 address, in network byte order. | ||
270 | */ | ||
271 | uint32_t ipv4_addr GNUNET_PACKED; | ||
272 | |||
273 | /** | ||
274 | * Port number, in network byte order. | ||
275 | */ | ||
276 | uint16_t u4_port GNUNET_PACKED; | ||
277 | }; | ||
278 | |||
279 | /** | ||
280 | * IPv4 addresses | ||
281 | */ | ||
282 | struct IPv6HttpAddress | ||
283 | { | ||
284 | /** | ||
285 | * IPv6 address. | ||
286 | */ | ||
287 | struct in6_addr ipv6_addr GNUNET_PACKED; | ||
288 | |||
289 | /** | ||
290 | * Port number, in network byte order. | ||
291 | */ | ||
292 | uint16_t u6_port GNUNET_PACKED; | ||
293 | }; | ||
294 | |||
295 | |||
296 | /** | ||
264 | * Session handle for connections. | 297 | * Session handle for connections. |
265 | */ | 298 | */ |
266 | struct Session | 299 | struct Session |