NAME

cat_send - send a data buffer to filter stack

SYNOPSIS

#include <cat.h>

int cat_send(cat_session *session, int fd_id, cat_buffer *buffer);

DESCRIPTION

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.

RETURN VALUES

Returns CAT_OK if successful, or a negative error code otherwise.

SEE ALSO

cat, cat_recv