SNMP Manager Programmer's Guide

Programming Examples
SNMP Manager Programmer’s Guide–134249
2-31
Managers Supporting UDP and IPC
if (PRINT_DEBUG_MSG)
{
fprintf(stdout, "READX initialization failed with error %i.\n",
err);
}
return READ_FAILED;
}
} /* end of if(host_int->local_flag == REMOTE_HOSTNAME) */
temp_file_num = host_int->file_num;
AWAITIOX (&temp_file_num, (long *) &IOC_buffp, &read_cnt, &IO_tag, <--46
(long)(host_int->timeout));
host_int->count_read = read_cnt;
FILE_GETINFO_ (host_int->file_num, &err);
if (err != 0)
{
host_int->err_num = err; /* Save the error number */
if (PRINT_DEBUG_MSG)
{
if (host_int->local_flag == REMOTE_HOSTNAME)
{
/* Using remote access (sockets) */
fprintf(stdout,
"AWAITIOX for T_RECVFROM_NW returned error %i.\n", err);
} else
{
/* Using local access (file) */
fprintf(stdout,
"AWAITIOX for READX returned error %i.\n", err);
}
}
return READ_FAILED;
}
/* Now decode the message. */
/* I don't need to update the ebuff structure. */
if(host_int->local_flag == REMOTE_HOSTNAME) <--47
{
/* Set the "from" field in the host_int. */
Example 2-2. Contents of snmpfsc (page 18 of 19)