cat_send - send a data buffer to filter stack
#include <cat.h>
int cat_send(cat_session *session, int fd_id, cat_buffer *buffer);
Sends the data buffer buffer through all applicable filters for the descriptor fd_id and down to the I/O handler. Regardless of whether the function is
successful or not, the data buffer becomes the property of the filter stack
and should not be used again.
The fd_id must be one of CAT_CLIENT_WFD
or
CAT_SERVER_WFD
.
If used from within a filter, only the filters below will be invoked.
Returns CAT_OK
if successful, or a negative error code otherwise.
cat, cat_recv