diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-21 11:15:10 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-21 11:15:10 +0000 |
commit | e7dea84a13da4c2a9bf6f70d57550c99de6538d1 (patch) | |
tree | ba96d8fe18fc97ced2afb584d098aadfbc923577 /src/transport/plugin_transport_http.h | |
parent | b7fe65e8a48aeb0f9ff51fa01ed2dd5ef5158f23 (diff) | |
download | gnunet-e7dea84a13da4c2a9bf6f70d57550c99de6538d1.tar.gz gnunet-e7dea84a13da4c2a9bf6f70d57550c99de6538d1.zip |
mod
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r-- | src/transport/plugin_transport_http.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h index dc0f8bb01..1469fd8a9 100644 --- a/src/transport/plugin_transport_http.h +++ b/src/transport/plugin_transport_http.h | |||
@@ -119,6 +119,29 @@ struct Plugin | |||
119 | */ | 119 | */ |
120 | 120 | ||
121 | /** | 121 | /** |
122 | * External hostname the plugin can be connected to, can be different to | ||
123 | * the host's FQDN, used e.g. for reverse proxying | ||
124 | */ | ||
125 | char *external_hostname; | ||
126 | |||
127 | /** | ||
128 | * External hostname the plugin can be connected to, can be different to | ||
129 | * the host's FQDN, used e.g. for reverse proxying | ||
130 | */ | ||
131 | struct HttpAddress *ext_addr; | ||
132 | |||
133 | /** | ||
134 | * External address length | ||
135 | */ | ||
136 | size_t ext_addr_len; | ||
137 | |||
138 | /** | ||
139 | * Task calling transport service about external address | ||
140 | */ | ||
141 | GNUNET_SCHEDULER_TaskIdentifier notify_ext_task; | ||
142 | |||
143 | |||
144 | /** | ||
122 | * Plugin name | 145 | * Plugin name |
123 | * Equals configuration section: transport-http, transport-https | 146 | * Equals configuration section: transport-http, transport-https |
124 | */ | 147 | */ |
@@ -284,6 +307,22 @@ struct Plugin | |||
284 | GNUNET_NETWORK_STRUCT_BEGIN | 307 | GNUNET_NETWORK_STRUCT_BEGIN |
285 | 308 | ||
286 | /** | 309 | /** |
310 | * HTTP addresses including a full URI | ||
311 | */ | ||
312 | struct HttpAddress | ||
313 | { | ||
314 | /** | ||
315 | * Length of the address following in NBO | ||
316 | */ | ||
317 | uint32_t addr_len GNUNET_PACKED; | ||
318 | |||
319 | /** | ||
320 | * Address following | ||
321 | */ | ||
322 | void *addr GNUNET_PACKED; | ||
323 | }; | ||
324 | |||
325 | /** | ||
287 | * IPv4 addresses | 326 | * IPv4 addresses |
288 | */ | 327 | */ |
289 | struct IPv4HttpAddress | 328 | struct IPv4HttpAddress |