aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-03-27 10:32:30 +0000
committerChristian Grothoff <christian@grothoff.org>2011-03-27 10:32:30 +0000
commit817bbb71e3e583ec85d6d63ca3e0cbb90ccd7462 (patch)
tree7e9e8717e9f57b74fca3a0e93f0d4b94234a1dd3 /src/util
parent3814b7980a4ed1117be9659a3d10fa49cb4c16e9 (diff)
downloadgnunet-817bbb71e3e583ec85d6d63ca3e0cbb90ccd7462.tar.gz
gnunet-817bbb71e3e583ec85d6d63ca3e0cbb90ccd7462.zip
communicate res delay in capi
Diffstat (limited to 'src/util')
-rw-r--r--src/util/connection.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/src/util/connection.c b/src/util/connection.c
index 737a6e15c..5dbc9916b 100644
--- a/src/util/connection.c
+++ b/src/util/connection.c
@@ -1372,9 +1372,13 @@ process_notify (struct GNUNET_CONNECTION_Handle *sock)
1372 * expired). 1372 * expired).
1373 * 1373 *
1374 * This task notifies the client about the timeout. 1374 * This task notifies the client about the timeout.
1375 *
1376 * @param cls the 'struct GNUNET_CONNECTION_Handle'
1377 * @param tc scheduler context
1375 */ 1378 */
1376static void 1379static void
1377transmit_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 1380transmit_timeout (void *cls,
1381 const struct GNUNET_SCHEDULER_TaskContext *tc)
1378{ 1382{
1379 struct GNUNET_CONNECTION_Handle *sock = cls; 1383 struct GNUNET_CONNECTION_Handle *sock = cls;
1380 GNUNET_CONNECTION_TransmitReadyNotify notify; 1384 GNUNET_CONNECTION_TransmitReadyNotify notify;
@@ -1403,15 +1407,23 @@ transmit_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1403 * at the time of being asked to transmit. 1407 * at the time of being asked to transmit.
1404 * 1408 *
1405 * This task notifies the client about the error. 1409 * This task notifies the client about the error.
1410 *
1411 * @param cls the 'struct GNUNET_CONNECTION_Handle'
1412 * @param tc scheduler context
1406 */ 1413 */
1407static void 1414static void
1408connect_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 1415connect_error (void *cls,
1416 const struct GNUNET_SCHEDULER_TaskContext *tc)
1409{ 1417{
1410 struct GNUNET_CONNECTION_Handle *sock = cls; 1418 struct GNUNET_CONNECTION_Handle *sock = cls;
1411 GNUNET_CONNECTION_TransmitReadyNotify notify; 1419 GNUNET_CONNECTION_TransmitReadyNotify notify;
1420
1412 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1421 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1413 "Transmission request of size %u fails, connection failed (%p).\n", 1422 "Transmission request of size %u fails (%s/%u), connection failed (%p).\n",
1414 sock->nth.notify_size, sock); 1423 sock->nth.notify_size,
1424 sock->hostname,
1425 sock->port,
1426 sock);
1415#if DEBUG_CONNECTION 1427#if DEBUG_CONNECTION
1416 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1428 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1417 "Transmission request of size %u fails, connection failed (%p).\n", 1429 "Transmission request of size %u fails, connection failed (%p).\n",
@@ -1424,6 +1436,11 @@ connect_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1424} 1436}
1425 1437
1426 1438
1439/**
1440 * FIXME
1441 *
1442 * @param sock FIXME
1443 */
1427static void 1444static void
1428transmit_error (struct GNUNET_CONNECTION_Handle *sock) 1445transmit_error (struct GNUNET_CONNECTION_Handle *sock)
1429{ 1446{