Added a dedicated sender flush method, delay sender destruction until users gone
[strongswan.git] / src / libcharon / network / sender.h
index f77fada..6ee0704 100644 (file)
@@ -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);