DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Developing SMUX peers for SNMP agents

Opening

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; }


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004