rsync_connect
int rsync_connect(const struct opts *, int *, const struct fargs *);
if ((rc = rsync_connect(&opts, &sd, fargs)) == 0) {