diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-27 10:32:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-27 10:32:30 +0000 |
commit | 817bbb71e3e583ec85d6d63ca3e0cbb90ccd7462 (patch) | |
tree | 7e9e8717e9f57b74fca3a0e93f0d4b94234a1dd3 /src/util | |
parent | 3814b7980a4ed1117be9659a3d10fa49cb4c16e9 (diff) | |
download | gnunet-817bbb71e3e583ec85d6d63ca3e0cbb90ccd7462.tar.gz gnunet-817bbb71e3e583ec85d6d63ca3e0cbb90ccd7462.zip |
communicate res delay in capi
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/connection.c | 25 |
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 | */ |
1376 | static void | 1379 | static void |
1377 | transmit_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 1380 | transmit_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 | */ |
1407 | static void | 1414 | static void |
1408 | connect_error (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | 1415 | connect_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 | */ | ||
1427 | static void | 1444 | static void |
1428 | transmit_error (struct GNUNET_CONNECTION_Handle *sock) | 1445 | transmit_error (struct GNUNET_CONNECTION_Handle *sock) |
1429 | { | 1446 | { |