new operation queue for limiting overlay connects
[oweals/gnunet.git] / src / transport / plugin_transport_http_common.h
index 377eb9fb92e08a5af32009aee539fe001009eb9e..85793ce7fa19a420553cf092a506c7a17a05c4f0 100644 (file)
@@ -121,6 +121,20 @@ http_common_address_from_socket (const char *protocol,
                                  const struct sockaddr *addr,
                                  socklen_t addrlen);
 
+/**
+ * Create a socketaddr from a HTTP address
+ *
+ * @param addr sockaddr * address
+ * @param addrlen length of the address
+ * @param res the result:
+ * GNUNET_SYSERR, invalid input,
+ * GNUNET_YES: could convert to ip,
+ * GNUNET_NO: valid input but could not convert to ip (hostname?)
+ * @return the string
+ */
+struct sockaddr *
+http_common_socket_from_address (const void *addr, size_t addrlen, int *res);
+
 /**
  * Get the length of an address
  *