On Tue, 2006-01-31 at 23:21 +1100, Peter Thompson & Leanne O'Meara
wrote:
> Dear Sir/Madam,
>
> I have a simple query about the snmp_synch_response function ...
> Does this operate synchronously as the name suggests ?
Yes.
If you look at the code (in snmplib/snmp_client.c), it boils down
to the following:
int
snmp_synch_response_cb(netsnmp_session * ss,
netsnmp_pdu *pdu,
netsnmp_pdu **response, snmp_callback pcb)
{
snmp_send(ss, pdu);
while (state->waiting) {
snmp_select_info(&numfds, &fdset, tvp, &block);
select(numfds, &fdset, 0, 0, tvp);
snmp_read(&fdset);
}
}
(where the callback routine 'snmp_synch_input' clears the waiting flag).
> That is, does it wait for the response PDU (for the timeout period)
> before continuing ?
Exactly.
Dave
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users