aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http_common.h')
-rw-r--r--src/transport/plugin_transport_http_common.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/transport/plugin_transport_http_common.h b/src/transport/plugin_transport_http_common.h
index 377eb9fb9..65516e595 100644
--- a/src/transport/plugin_transport_http_common.h
+++ b/src/transport/plugin_transport_http_common.h
@@ -122,6 +122,21 @@ http_common_address_from_socket (const char *protocol,
122 socklen_t addrlen); 122 socklen_t addrlen);
123 123
124/** 124/**
125 * Create a socketaddr from a HTTP address
126 *
127 * @param protocol protocol
128 * @param addr sockaddr * address
129 * @param addrlen length of the address
130 * @param res the result:
131 * GNUNET_SYSERR, invalid input,
132 * GNUNET_YES: could convert to ip,
133 * GNUNET_NO: valid input but could not convert to ip (hostname?)
134 * @return the string
135 */
136struct sockaddr *
137http_common_socket_from_address (const void *addr, size_t addrlen, int *res);
138
139/**
125 * Get the length of an address 140 * Get the length of an address
126 * 141 *
127 * @param addr address 142 * @param addr address