Sends a response to a Simple Network Management Protocol (SNMP) agent.
#include <isode/snmp/smux.h>
int smux_response (event) struct type_SNMP_GetResponse__PDU *event;
The smux_response subroutine sends a protocol data unit (PDU), also called an event, to the SNMP agent. The subroutine does not check whether the Management Information Base (MIB) tree is properly registered. The subroutine checks only to see whether a Transmission Control Protocol (TCP) connection to the SNMP agent exists and ensures that the event parameter is not null.
event | Specifies a type_SNMP_GetResponse__PDU variable that contains the response PDU to send to the SNMP agent. |
If the subroutine is successful, OK is returned. Otherwise, NOTOK is returned.
If the subroutine is unsuccessful, the smux_errno global variable is set to one of the following values:
This subroutine is part of the SNMP Application Programming Interface in the TCP/IP facility.
The smux_close subroutine, smux_error subroutine, smux_init subroutine, smux_register 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.