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;