diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-11 12:44:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-11 12:44:06 +0000 |
commit | 914ec7ef9e59b69868b92fced96d6693b2097e13 (patch) | |
tree | 9891a3f70dd894a2af1582baf1a3c9ccd53beb43 /src/dv | |
parent | 69d9f80b83053162a38a292fc8a024acb6a463a9 (diff) | |
download | gnunet-914ec7ef9e59b69868b92fced96d6693b2097e13.tar.gz gnunet-914ec7ef9e59b69868b92fced96d6693b2097e13.zip |
add cork option to core api:
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/gnunet-service-dv.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c index a4c78a942..900c8f5d7 100644 --- a/src/dv/gnunet-service-dv.c +++ b/src/dv/gnunet-service-dv.c | |||
@@ -864,9 +864,16 @@ try_core_send (void *cls, | |||
864 | return; /* Message send already in progress */ | 864 | return; /* Message send already in progress */ |
865 | 865 | ||
866 | if ((pending != NULL) && (coreAPI != NULL)) | 866 | if ((pending != NULL) && (coreAPI != NULL)) |
867 | core_transmit_handle = GNUNET_CORE_notify_transmit_ready (coreAPI, pending->importance, pending->timeout, &pending->recipient, pending->msg_size, &core_transmit_notify, NULL); | 867 | core_transmit_handle = GNUNET_CORE_notify_transmit_ready (coreAPI, |
868 | GNUNET_YES, | ||
869 | pending->importance, | ||
870 | pending->timeout, | ||
871 | &pending->recipient, | ||
872 | pending->msg_size, | ||
873 | &core_transmit_notify, NULL); | ||
868 | } | 874 | } |
869 | 875 | ||
876 | |||
870 | /** | 877 | /** |
871 | * Function called to notify a client about the socket | 878 | * Function called to notify a client about the socket |
872 | * being ready to queue more data. "buf" will be | 879 | * being ready to queue more data. "buf" will be |
@@ -939,7 +946,7 @@ size_t core_transmit_notify (void *cls, | |||
939 | 946 | ||
940 | GNUNET_SCHEDULER_add_now(&try_core_send, NULL); | 947 | GNUNET_SCHEDULER_add_now(&try_core_send, NULL); |
941 | /*if (reply != NULL) | 948 | /*if (reply != NULL) |
942 | core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, reply->importance, reply->timeout, &reply->recipient, reply->msg_size, &core_transmit_notify, NULL);*/ | 949 | core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, GNUNET_YES, reply->importance, reply->timeout, &reply->recipient, reply->msg_size, &core_transmit_notify, NULL);*/ |
943 | 950 | ||
944 | return off; | 951 | return off; |
945 | } | 952 | } |
@@ -1704,7 +1711,7 @@ neighbor_send_task (void *cls, | |||
1704 | 1711 | ||
1705 | GNUNET_SCHEDULER_add_now(try_core_send, NULL); | 1712 | GNUNET_SCHEDULER_add_now(try_core_send, NULL); |
1706 | /*if (core_transmit_handle == NULL) | 1713 | /*if (core_transmit_handle == NULL) |
1707 | core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, default_dv_priority, GNUNET_TIME_relative_get_forever(), &to->identity, sizeof(p2p_dv_MESSAGE_NeighborInfo), &core_transmit_notify, NULL);*/ | 1714 | core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, GNUNET_YES, default_dv_priority, GNUNET_TIME_relative_get_forever(), &to->identity, sizeof(p2p_dv_MESSAGE_NeighborInfo), &core_transmit_notify, NULL);*/ |
1708 | 1715 | ||
1709 | } | 1716 | } |
1710 | 1717 | ||
@@ -2080,7 +2087,7 @@ static int schedule_disconnect_messages (void *cls, | |||
2080 | 2087 | ||
2081 | GNUNET_SCHEDULER_add_now(try_core_send, NULL); | 2088 | GNUNET_SCHEDULER_add_now(try_core_send, NULL); |
2082 | /*if (core_transmit_handle == NULL) | 2089 | /*if (core_transmit_handle == NULL) |
2083 | core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, default_dv_priority, GNUNET_TIME_relative_get_forever(), ¬ify->identity, sizeof(p2p_dv_MESSAGE_Disconnect), &core_transmit_notify, NULL);*/ | 2090 | core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, GNUNET_YES, default_dv_priority, GNUNET_TIME_relative_get_forever(), ¬ify->identity, sizeof(p2p_dv_MESSAGE_Disconnect), &core_transmit_notify, NULL);*/ |
2084 | 2091 | ||
2085 | return GNUNET_YES; | 2092 | return GNUNET_YES; |
2086 | } | 2093 | } |