[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Communications Technical Reference, Volume 2

smux_error Subroutine


Creates a readable string from the smux_errno global variable value.


SNMP Library (libsnmp.a)


#include <isode/snmp/smux.h>
char *smux_error (error)
int error;


The smux_error subroutine creates a readable string from error code values in the smux_errno global variable in the smux.h file. The smux global variable, smux_errno, is set when an error occurs. The smux_error subroutine can also get a string that interprets the value of the smux_errno variable. The smux_error subroutine can be used to retrieve any numbers, but is most useful interpreting the integers returned in the smux_errno variable.


error Contains the error to interpret. Usually called with the value of the smux_errno variable, but can be called with any error that is an integer.

Return Values

If the subroutine is successful, a pointer to a static string is returned. If an error occurs, a string of the type SMUX error %s(%d) is returned. The %s value is a string representing the explanation of the error. The %d is the number used to reference that error.

Implementation Specifics

This subroutine is part of the SNMP Application Programming Interface in the TCP/IP facility.

Related Information

The smux_close subroutine, smux_init subroutine, smux_register subroutine, smux_response subroutine, smux_simple_open subroutine, smux_trap subroutine, smux_wait subroutine.

List of Network Manager Programming References.

RFC 1227, SNMP MUX Protocol and MIB.

SNMP Overview for Programmers in AIX Version 4.3 Communications Programming Concepts.

[ Previous | Next | Contents | Glossary | Home | Search ]