equal
deleted
inserted
replaced
97 * Add a string to the recieve buffer using sock_test_add_recv_vec() |
97 * Add a string to the recieve buffer using sock_test_add_recv_vec() |
98 */ |
98 */ |
99 void sock_test_add_recv_str (struct sock_test *sock, const char *str); |
99 void sock_test_add_recv_str (struct sock_test *sock, const char *str); |
100 |
100 |
101 /** |
101 /** |
|
102 * Set EOF on recv, and trigger events. |
|
103 */ |
|
104 void sock_test_set_recv_eof (struct sock_test *sock); |
|
105 |
|
106 /** |
102 * Get the send buffer contents as a single string, free() after use if you care about that. |
107 * Get the send buffer contents as a single string, free() after use if you care about that. |
103 * |
108 * |
104 * Clears the send buffer, so this doesn't return the same data twice. |
109 * Clears the send buffer, so this doesn't return the same data twice. |
105 */ |
110 */ |
106 void sock_test_get_send_data (struct sock_test *sock, char **buf, size_t *len); |
111 void sock_test_get_send_data (struct sock_test *sock, char **buf, size_t *len); |