src/sock_test.h
changeset 42 13cfc41f76a7
parent 41 40f7aa051acb
child 43 42f5dc680930
--- a/src/sock_test.h	Thu Mar 12 21:12:48 2009 +0200
+++ b/src/sock_test.h	Thu Mar 12 21:23:33 2009 +0200
@@ -52,6 +52,9 @@
 
     /** No more data is going to be added, return EOF once all the rest is consumed */
     bool eof;
+
+    /** event flags */
+    int ev_mask;
 };
 
 /**
@@ -84,7 +87,9 @@
 void sock_test_set_recv_buffer (struct sock_test *sock, struct io_vec *vecs, size_t count, bool eof);
 
 /**
- * Add some data to the recieve buffer
+ * Add some data to the recieve buffer.
+ *
+ * If events are enabled, they are triggered.
  */
 void sock_test_add_recv_vec (struct sock_test *sock, struct io_vec vec);