catgen_run - run sessions
#include <cat/gen.h>
int catgen_run(void);
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.
The function returns a suitable exit code for an Agent, where 0 indicates
successful completion.
The catgen_server function calls catgen_run.
Catgen_run calls catsock_run, which will handle any sessions registered using catsock_add.
cat, catgen, catsock_run
catgen_listen, catgen_server