aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-08-28 14:51:20 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-08-28 14:51:20 +0000
commit5800c4bf0fec9d1c48be72570b8af5ed3ec29e2f (patch)
tree8a5b5ea9a19571f36c0cd543e0eb8991a664cfd0 /src/transport/plugin_transport_http_common.h
parentf86ab42b1eaded9bd31da5229eed461d65a982dc (diff)
downloadgnunet-5800c4bf0fec9d1c48be72570b8af5ed3ec29e2f.tar.gz
gnunet-5800c4bf0fec9d1c48be72570b8af5ed3ec29e2f.zip
changes
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