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

Error recovery

All of the SMUX routines return NOTOK on failure. The function

char * smux_error(smux_errno)
extern int  smux_errno;
returns an appropriate string based on the error number passed to it. The parameter value is set by functions in the SMUX/SNMP library and the value could be any of: parameterMissing, invalidOperation, inProgress, systemError, congestion, or youLoseBig. The variable
extern char smux_info[BUFSIZ];
contains a printable explanation of what caused the failure. All errors are FATAL except inProgress; if the error code is inProgress, the peer program continues retrying the file descriptor for writability, and then calls smux_simple_open again. Otherwise, the program takes the appropriate action based on the error code returned.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004