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


Next topic: Registering MIB modules
Previous topic: Initialization

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003