|
|
Once smux_init succeeds, the peer program starts selecting for writability on the file descriptor returned. Once xselect says the program can write to the fd, foosmuxd calls the routine smux_simple_open, which tries to establish an SMUX association.
if (smux_simple_open(&se->se_identity, "SMUX NEWD daemon", se->se_password, strlen(se->se_password)) == NOTOK) { if (smux_errno == inProgress) return;LIB_ERROR2("smux_simple_open: %s [%s]", smux_error(smux_errno), smux_info); smux_fd = NOTOK; return; }