aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_transport_service.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index 7b94f2209..d4948e5ba 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -41,7 +41,7 @@ extern "C"
41/** 41/**
42 * Version number of the transport API. 42 * Version number of the transport API.
43 */ 43 */
44#define GNUNET_TRANSPORT_VERSION 0x00000000 44#define GNUNET_TRANSPORT_VERSION 0x00000001
45 45
46 46
47/** 47/**
@@ -451,6 +451,22 @@ struct GNUNET_TRANSPORT_TransmitHandle;
451 451
452 452
453/** 453/**
454 * Function called to notify a client about the connection begin ready
455 * to queue more data. @a buf will be NULL and @a size zero if the
456 * connection was closed for writing in the meantime.
457 *
458 * @param cls closure
459 * @param size number of bytes available in @a buf
460 * @param buf where the callee should write the message
461 * @return number of bytes written to @a buf
462 */
463typedef size_t
464(*GNUNET_TRANSPORT_TransmitReadyNotify) (void *cls,
465 size_t size,
466 void *buf);
467
468
469/**
454 * Check if we could queue a message of the given size for 470 * Check if we could queue a message of the given size for
455 * transmission. The transport service will take both its internal 471 * transmission. The transport service will take both its internal
456 * buffers and bandwidth limits imposed by the other peer into 472 * buffers and bandwidth limits imposed by the other peer into
@@ -459,7 +475,6 @@ struct GNUNET_TRANSPORT_TransmitHandle;
459 * @param handle connection to transport service 475 * @param handle connection to transport service
460 * @param target who should receive the message 476 * @param target who should receive the message
461 * @param size how big is the message we want to transmit? 477 * @param size how big is the message we want to transmit?
462 * @param priority how important is the message? @deprecated - remove?
463 * @param timeout after how long should we give up (and call 478 * @param timeout after how long should we give up (and call
464 * notify with buf NULL and size 0)? 479 * notify with buf NULL and size 0)?
465 * @param notify function to call when we are ready to 480 * @param notify function to call when we are ready to
@@ -473,9 +488,8 @@ struct GNUNET_TRANSPORT_TransmitHandle *
473GNUNET_TRANSPORT_notify_transmit_ready (struct GNUNET_TRANSPORT_Handle *handle, 488GNUNET_TRANSPORT_notify_transmit_ready (struct GNUNET_TRANSPORT_Handle *handle,
474 const struct GNUNET_PeerIdentity *target, 489 const struct GNUNET_PeerIdentity *target,
475 size_t size, 490 size_t size,
476 uint32_t priority,
477 struct GNUNET_TIME_Relative timeout, 491 struct GNUNET_TIME_Relative timeout,
478 GNUNET_CONNECTION_TransmitReadyNotify notify, 492 GNUNET_TRANSPORT_TransmitReadyNotify notify,
479 void *notify_cls); 493 void *notify_cls);
480 494
481 495