src/sock_test.h
changeset 43 42f5dc680930
parent 42 13cfc41f76a7
child 46 0c13bca53ae1
--- a/src/sock_test.h	Thu Mar 12 21:23:33 2009 +0200
+++ b/src/sock_test.h	Thu Mar 12 21:44:34 2009 +0200
@@ -94,7 +94,14 @@
 void sock_test_add_recv_vec (struct sock_test *sock, struct io_vec vec);
 
 /**
- * Get the send buffer contents as a single string, free() after use if you care about that
+ * Add a string to the recieve buffer using sock_test_add_recv_vec()
+ */
+void sock_test_add_recv_str (struct sock_test *sock, const char *str);
+
+/**
+ * Get the send buffer contents as a single string, free() after use if you care about that.
+ *
+ * Clears the send buffer, so this doesn't return the same data twice.
  */
 void sock_test_get_send_data (struct sock_test *sock, char **buf, size_t *len);