aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/network/sender.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/network/sender.h')
-rw-r--r--src/libcharon/network/sender.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcharon/network/sender.h b/src/libcharon/network/sender.h
index f77fadab2..6ee070435 100644
--- a/src/libcharon/network/sender.h
+++ b/src/libcharon/network/sender.h
@@ -44,6 +44,13 @@ struct sender_t {
void (*send) (sender_t *this, packet_t *packet);
/**
+ * Enforce a flush of the send queue.
+ *
+ * This function blocks until all queued packets have been sent.
+ */
+ void (*flush)(sender_t *this);
+
+ /**
* Destroys a sender object.
*/
void (*destroy) (sender_t *this);