From e7dea84a13da4c2a9bf6f70d57550c99de6538d1 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 21 Aug 2012 11:15:10 +0000 Subject: mod --- src/transport/plugin_transport_http.h | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'src/transport/plugin_transport_http.h') 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 @@ -118,6 +118,29 @@ struct Plugin * -------------------- */ + /** + * External hostname the plugin can be connected to, can be different to + * the host's FQDN, used e.g. for reverse proxying + */ + char *external_hostname; + + /** + * External hostname the plugin can be connected to, can be different to + * the host's FQDN, used e.g. for reverse proxying + */ + struct HttpAddress *ext_addr; + + /** + * External address length + */ + size_t ext_addr_len; + + /** + * Task calling transport service about external address + */ + GNUNET_SCHEDULER_TaskIdentifier notify_ext_task; + + /** * Plugin name * Equals configuration section: transport-http, transport-https @@ -283,6 +306,22 @@ struct Plugin GNUNET_NETWORK_STRUCT_BEGIN +/** + * HTTP addresses including a full URI + */ +struct HttpAddress +{ + /** + * Length of the address following in NBO + */ + uint32_t addr_len GNUNET_PACKED; + + /** + * Address following + */ + void *addr GNUNET_PACKED; +}; + /** * IPv4 addresses */ -- cgit v1.2.3