#include <cat/cat.h>
int catnet_settimeout(cat_session *session, int mseconds);
mseconds is the timeout in milliseconds. A negative value means that reads will never timeout. A value of 0 (zero) will make the session non-blocking, causing read operations to return immediately if no data is available. The TCP/IP I/O handler will return CAT_TIMEOUT in the event of a timeout.