SNMP Manager Programmer's Guide
Programming Examples
SNMP Manager Programmer’s Guide–134249
2-14
Managers Supporting UDP and IPC
48. The Manager Services function SNMP_Decode_Packet_WER() decodes the
response packet using myEBuff descriptors, returning a pointer to the decoded-
packet structure.
49. If decoding fails, the Manager Services SNMP_Free() library function releases
memory allocated for the packet structure and, if the PRINT_DEBUG_MSG flag is
set, a message is printed.
50. If the request identifiers in the request and response packets do not match, a message
is printed if the PRINT_DEBUG_MSG flag is set. If the PRINT_RECV_MSG flag
is set, the response packet is printed using the common utility function print_pkt().
Before the manager process stops, EBufferReset() is called one final time.
Example 2-2. Contents of snmpfsc (page 1 of 19)
#ifndef _INTEROPERABLE /* for OSS I/O calls */
#define _INTEROPERABLE
#endif
#include <stdio.h> nolist <--1
#include <ctype.h> nolist
#include <buffer.h> nolist
#include <snmpdefs.h> nolist
#include <stddef.h> nolist
#include <stdlib.h> nolist
#include <string.h> nolist
#include <talh> nolist
#include <systype.h> nolist
#include <socket.h> nolist
#include <netdb.h> nolist
#include <in.h> nolist
#include <print.h> nolist
#include "snmpfs.h" nolist
#ifdef __TANDEM
#include <cextdecs( \
AWAITIOX, \
FILE_CLOSE_, \
FILE_GETINFO_, \
FILE_OPEN_, \
NODENAME_TO_NODENUMBER_, \
READX, \
WRITEX)> nolist
#else
#include <grdapi.h>
#endif /* __TANDEM */