src/sock_test.h
changeset 43 42f5dc680930
parent 42 13cfc41f76a7
child 46 0c13bca53ae1
equal deleted inserted replaced
42:13cfc41f76a7 43:42f5dc680930
    92  * If events are enabled, they are triggered.
    92  * If events are enabled, they are triggered.
    93  */
    93  */
    94 void sock_test_add_recv_vec (struct sock_test *sock, struct io_vec vec);
    94 void sock_test_add_recv_vec (struct sock_test *sock, struct io_vec vec);
    95 
    95 
    96 /**
    96 /**
    97  * Get the send buffer contents as a single string, free() after use if you care about that
    97  * Add a string to the recieve buffer using sock_test_add_recv_vec()
       
    98  */
       
    99 void sock_test_add_recv_str (struct sock_test *sock, const char *str);
       
   100 
       
   101 /**
       
   102  * Get the send buffer contents as a single string, free() after use if you care about that.
       
   103  *
       
   104  * Clears the send buffer, so this doesn't return the same data twice.
    98  */
   105  */
    99 void sock_test_get_send_data (struct sock_test *sock, char **buf, size_t *len);
   106 void sock_test_get_send_data (struct sock_test *sock, char **buf, size_t *len);
   100 
   107 
   101 #endif
   108 #endif