NAME

catgen_run - run sessions

SYNOPSIS

#include <cat/gen.h>

int catgen_run(void);

DESCRIPTION

This function runs all sessions configured so far and waits for them to finish. When this function returns, the Agent should exit.

Listening sessions are typically configured by a call to catgen_listen() followed by a call to this function, which starts serving connections.

RETURN VALUES

The function returns a suitable exit code for an Agent, where 0 indicates successful completion.

NOTES

The catgen_server function calls catgen_run.

Catgen_run calls catsock_run, which will handle any sessions registered using catsock_add.

SEE ALSO

cat, catgen, catsock_run

catgen_listen, catgen_server