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

Initialization

foosmuxd calls the routine smux_init, which initializes an SMUX connection to the local SNMP agent. This starts a TCP connection, but most likely does not complete it. foosmuxd needs to call the open routine smux_simple_open (see ``Opening'') to complete the connection and establish the SMUX association.

If smux_init is successful, the return value is a file descriptor suitable for use with xselect.[1] On failure, smux_errno will be set to one of congestion, youLoseBig, or systemError. In this case, foosmuxd retries the operation every 5 minutes or so.

               if ((smux_fd = smux_init (debug)) == NOTOK)
                   LIB_ERROR2 ("smux_init: %s [%s]",
                          smux_error (smux_errno), smux_info);
               else
                   rock_and_roll = 0;


Footnotes

[1]
xselect is a wrapper for select or poll. xselect works similar to select.

Next topic: Opening
Previous topic: Reading compiled MIB modules

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