SNMP Manager Programmer's Guide
Programming Examples
SNMP Manager Programmer’s Guide–134249
2-45
SNMPGT
following the socket structure. The Manager Services function EBufferUsed()
computes the number of used bytes in the buffer.
25. The encoded packet in sndbuff is transmitted after computing the number of bytes to
transmit.
26. The AWAITIOX() system call determines when an I/O operation has been
completed. This particular call causes the manager to wait indefinitely for
completion of transmission.
27. The Manager Services function EBufferClean() releases memory associated with the
encoded-packet buffer.
28. The t_recvfrom_nw() call receives the response packet into rcvbuff.
29. The timeout value is used in the AWAITIOX() call.
30. Manager Services function SNMP_Decode_Packet_WER() decodes information in
the response buffer, starting after the values in the socket structure.
31. The request ID in the response packet is examined to determine whether it is within
the range of IDs associated with previous requests.
32. Manager Services function SNMP_Free() releases memory associated with
send_pkt.
33. The response packet is printed.
34. Memory associated with rcvd_pkt is released.