NAME

cat_newsession - create a new session context

SYNOPSIS

#include <cat.h>

cat_session *cat_newsession(void);

DESCRIPTION

Allocates and initializes a new session context and returns it. An I/O Handler must be installed, using cat_installiohandler(), before any data can be read or written.

NULL is returned on error. The function will fail only if it is unable to allocate memory.

SEE ALSO

cat, cat_installiohandler