#include <cat.h>
int catbuf_put(cat_session *s, int fd, cat_buffer *b);
catbuf_put() and catbuf_get() comprise the interface with the filter stack. All data passed to or from file descriptors in a filter should use these functions. Hence, these functions work only in association with a session.
The buffer should not be accessed again, unless retrieved with catbuf_get().