/**
* A connection handle
- *
+ *
*/
struct ConnectionHandle
{
/**
- * The curl easy handle
+ * The curl easy handle
*/
CURL *easyhandle;
-
+
/**
- * The related session
+ * The related session
*/
struct Session *s;
};
/**
- * Connect a HTTP put connection
+ * Connect a HTTP put connection
*
* @param s the session to connect
* @return GNUNET_SYSERR for hard failure, GNUNET_OK for success
* @return always 0
*/
static int
-client_log (CURL *curl, curl_infotype type,
+client_log (CURL *curl, curl_infotype type,
const char *data, size_t size, void *cls)
{
struct ConnectionHandle *ch = cls;
/**
* Check if a sessions exists for an specific address
- *
+ *
* @param plugin the plugin
* @param address the address
* @return the session or NULL
"Client: peer `%s' address `%s' next read delayed for %s\n",
GNUNET_i2s (&s->target),
http_common_plugin_address_to_string (NULL,
- s->plugin->protocol,
+ s->plugin->protocol,
s->addr, s->addrlen),
GNUNET_STRINGS_relative_time_to_string (delay,
GNUNET_YES));
GNUNET_TIME_absolute_get_difference (now, s->next_receive);
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, s->plugin->name,
"Session %p / connection %p: No inbound bandwidth available! Next read was delayed for %s\n",
- s, s->client_get,
+ s, s->client_get,
GNUNET_STRINGS_relative_time_to_string (delta,
GNUNET_YES));
if (s->recv_wakeup_task != GNUNET_SCHEDULER_NO_TASK)
/**
* Connect GET connection for a session
- *
+ *
* @param s the session to connect
* @return GNUNET_OK on success, GNUNET_SYSERR otherwise
*/
}
/**
- * Connect a HTTP put connection
+ * Connect a HTTP put connection
*
* @param s the session to connect
* @return GNUNET_SYSERR for hard failure, GNUNET_OK for ok
/**
* Connect both PUT and GET connection for a session
- *
+ *
* @param s the session to connect
* @return GNUNET_OK on success, GNUNET_SYSERR otherwise
*/
s);
GNUNET_log (TIMEOUT_LOG,
"Timeout for session %p set to %s\n",
- s,
+ s,
GNUNET_STRINGS_relative_time_to_string (CLIENT_SESSION_TIMEOUT,
GNUNET_YES));
}