aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r--src/transport/plugin_transport_http.h39
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
284GNUNET_NETWORK_STRUCT_BEGIN 307GNUNET_NETWORK_STRUCT_BEGIN
285 308
286/** 309/**
310 * HTTP addresses including a full URI
311 */
312struct 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 */
289struct IPv4HttpAddress 328struct IPv4HttpAddress