aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/network/sender.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2012-05-02 09:03:23 +0200
committerMartin Willi <martin@revosec.ch>2012-05-02 10:22:59 +0200
commitf99d8b10c9f5b5024b4b1e5f5d1e56e2519cdadc (patch)
treec675eb2564affb806336942de5387ad2ad668c0b /src/libcharon/network/sender.h
parent13de38e354c055b2c8a5e95fc2e1cb793782bf27 (diff)
downloadstrongswan-f99d8b10c9f5b5024b4b1e5f5d1e56e2519cdadc.tar.bz2
strongswan-f99d8b10c9f5b5024b4b1e5f5d1e56e2519cdadc.tar.xz
Added a dedicated sender flush method, delay sender destruction until users gone
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);