Wait or Sleep function in C#
-
Hi, I am using a snmp manager component. it sends a broadcast request. the responses of the broadcast are reveived via an event called snmp_OnResponse()event. All the response I received I am trying to store them in a arraylist. which I later want to use to do further processing. But I have no way of knowing when I would have received all the responses. I can make an assumption, by using snmp timeout , and waiting for that amount of time before proceeding to do anything. Is there a wait or sleep function which will reliquish control, and let OnResponse event handle all the incoming responses before proceeding with further function calls? I would appreciate if you can suggest any other approach to solve this. Thanks, Arti
-
Hi, I am using a snmp manager component. it sends a broadcast request. the responses of the broadcast are reveived via an event called snmp_OnResponse()event. All the response I received I am trying to store them in a arraylist. which I later want to use to do further processing. But I have no way of knowing when I would have received all the responses. I can make an assumption, by using snmp timeout , and waiting for that amount of time before proceeding to do anything. Is there a wait or sleep function which will reliquish control, and let OnResponse event handle all the incoming responses before proceeding with further function calls? I would appreciate if you can suggest any other approach to solve this. Thanks, Arti
-
Hi, I am using a snmp manager component. it sends a broadcast request. the responses of the broadcast are reveived via an event called snmp_OnResponse()event. All the response I received I am trying to store them in a arraylist. which I later want to use to do further processing. But I have no way of knowing when I would have received all the responses. I can make an assumption, by using snmp timeout , and waiting for that amount of time before proceeding to do anything. Is there a wait or sleep function which will reliquish control, and let OnResponse event handle all the incoming responses before proceeding with further function calls? I would appreciate if you can suggest any other approach to solve this. Thanks, Arti