#endif
my_msg = GNUNET_memdup (msg, ntohs (msg->header.size));
if (NULL == GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_NO,
1,
MAX_TRANSMIT_DELAY,
&pid,
strlen (entry->room) +
entry->meta_len;
if (NULL == GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_NO,
1,
MAX_TRANSMIT_DELAY,
&pid,
my_receipt = GNUNET_memdup (receipt,
sizeof (struct P2PConfirmationReceiptMessage));
if (NULL == GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_YES,
1,
MAX_TRANSMIT_DELAY,
&pid,
public_key = GNUNET_memdup (&entry->public_key,
sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded));
if (NULL == GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_YES,
1,
MAX_TRANSMIT_DELAY,
&pid,
strlen (entry->room) +
entry->meta_len;
th = GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_NO,
1,
MAX_TRANSMIT_DELAY,
other,
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"Peer connected: %s\n", GNUNET_i2s (peer));
th = GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_YES,
1,
MAX_TRANSMIT_DELAY,
peer,
* established (and the client has been informed about this).
*
* @param handle connection to core service
+ * @param cork is corking allowed for this transmission?
* @param priority how important is the message?
* @param maxdelay how long can the message wait?
* @param target who should receive the message,
*/
struct GNUNET_CORE_TransmitHandle *
GNUNET_CORE_notify_transmit_ready (struct GNUNET_CORE_Handle *handle,
+ int cork,
uint32_t priority,
struct GNUNET_TIME_Relative maxdelay,
const struct GNUNET_PeerIdentity *target,
if (reply_counter >= MAX_REPLY_TIMES)
reply_counter = 0;
peer->th =
- GNUNET_CORE_notify_transmit_ready (coreAPI, pending->importance,
+ GNUNET_CORE_notify_transmit_ready (coreAPI,
+ GNUNET_YES,
+ pending->importance,
pending->timeout, &peer->id, ssize,
&core_transmit_notify, peer);
if (peer->th == NULL)
return; /* Message send already in progress */
if ((pending != NULL) && (coreAPI != NULL))
- core_transmit_handle = GNUNET_CORE_notify_transmit_ready (coreAPI, pending->importance, pending->timeout, &pending->recipient, pending->msg_size, &core_transmit_notify, NULL);
+ core_transmit_handle = GNUNET_CORE_notify_transmit_ready (coreAPI,
+ GNUNET_YES,
+ pending->importance,
+ pending->timeout,
+ &pending->recipient,
+ pending->msg_size,
+ &core_transmit_notify, NULL);
}
+
/**
* Function called to notify a client about the socket
* being ready to queue more data. "buf" will be
GNUNET_SCHEDULER_add_now(&try_core_send, NULL);
/*if (reply != NULL)
- core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, reply->importance, reply->timeout, &reply->recipient, reply->msg_size, &core_transmit_notify, NULL);*/
+ core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, GNUNET_YES, reply->importance, reply->timeout, &reply->recipient, reply->msg_size, &core_transmit_notify, NULL);*/
return off;
}
GNUNET_SCHEDULER_add_now(try_core_send, NULL);
/*if (core_transmit_handle == NULL)
- 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);*/
+ 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);*/
}
GNUNET_SCHEDULER_add_now(try_core_send, NULL);
/*if (core_transmit_handle == NULL)
- 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);*/
+ 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);*/
return GNUNET_YES;
}
}
cp->cth
= GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_YES,
0, GNUNET_TIME_UNIT_FOREVER_REL,
(const struct GNUNET_PeerIdentity*) key,
msize + sizeof (struct PutMessage),
&pid);
cp->last_transmission_request_start = GNUNET_TIME_absolute_get ();
cp->cth = GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_YES,
pm->priority,
GNUNET_CONSTANTS_SERVICE_TIMEOUT,
&pid,
/* need to schedule transmission */
cp->last_transmission_request_start = GNUNET_TIME_absolute_get ();
cp->cth = GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_YES,
cp->pending_messages_head->priority,
MAX_TRANSMIT_DELAY,
&pid,
{
/* reservation success, try transmission now! */
pth->cth = GNUNET_CORE_notify_transmit_ready (GSF_core,
+ GNUNET_YES,
pth->priority,
GNUNET_TIME_absolute_get_remaining (pth->timeout),
peer,
if (is_ready)
{
pth->cth = GNUNET_CORE_notify_transmit_ready (GSF_core,
+ GNUNET_YES,
priority,
timeout,
&target,
"Asked core to transmit advertisement message with a size of %u bytes to peer `%s'\n",
size,GNUNET_i2s(peer));
if (NULL == GNUNET_CORE_notify_transmit_ready (core,
+ GNUNET_YES,
0,
GNUNET_ADV_TIMEOUT,
peer,
*
*
* @param handle connection to core service
+ * @param cork is corking allowed for this transmission?
* @param priority how important is the message?
* @param maxdelay how long can the message wait?
* @param target who should receive the message,
GNUNET_CORE_notify_transmit_ready (struct
GNUNET_CORE_Handle
*handle,
+ int cork,
uint32_t priority,
struct
GNUNET_TIME_Relative
cls->notify = notify;
cls->tunnel = tunnel;
GNUNET_CORE_notify_transmit_ready(tunnel->handle->core,
+ cork,
priority,
maxdelay,
&tunnel->peer,
if (delay.rel_value == 0)
{
/* now! */
- pl->hello_req = GNUNET_CORE_notify_transmit_ready (handle, 0,
+ pl->hello_req = GNUNET_CORE_notify_transmit_ready (handle,
+ GNUNET_YES,
+ 0,
GNUNET_CONSTANTS_SERVICE_TIMEOUT,
&pl->pid,
next_want,