summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-08-21 11:15:10 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-08-21 11:15:10 +0000
commite7dea84a13da4c2a9bf6f70d57550c99de6538d1 (patch)
treeba96d8fe18fc97ced2afb584d098aadfbc923577 /src/transport/plugin_transport_http.h
parentb7fe65e8a48aeb0f9ff51fa01ed2dd5ef5158f23 (diff)
mod
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
*/
/**
+ * 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
*/
@@ -284,6 +307,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
*/
struct IPv4HttpAddress