NAME

catsock_modes - get the supported run modes

SYNOPSIS

#include <cat/cat.h>

int catsock_modes(void);

DESCRIPTION

This function returns the modes that may be used when running a session with catsock_run, after adding the session with catsock_add.

The return value is made up of one or more of the following flags (the same flags are used by catsock_add):

CATSOCK_FORK
Sessions can be run in a separate process. This is supported only on UNIX platforms.

CATSOCK_THREAD
Sessions can be run in a separate thread. This is supported on Windows NT and on most UNIX systems.

CATSOCK_POLL
Sessions can be multiplexed in the global thread of the current process. This is currently supported only on UNIX platforms.

SEE ALSO

catsock_add, catsock_add