#include <cat/cat.h>
int catnet_connect(cat_session *session, const char *dest, int fd_ids);
"tcp:host:port"
, where host is either an IP address (in dotted-decimal format) or a host
name, and port is a port number or a service name.
If the session already uses any of the descriptors in fd_ids, these will be closed after a successful connection.
The function returns CAT_OK if successful, or a negative code on error.