The OpenIPMI library does not block except in cases where it calls standard library functions that block. I believe the only instance of that is name resolution (gethostbyname and friends).
The library is designed to always call a supplied callback if the function that takes the callback does not return an error. It can take a while if there are a lot of requests or if the remote end has failed and OpenIPMI must time out the operation, but the callback will eventually happen. So, for instance, if you request a sensor value and the network connection has failed, OpenIPMI will retry the operation a few times and will eventually time out and return an IPMI timeout error to the callback. So there is no need to have your own timer unless you need a value within a specific amount of time; no guarantee on time is provided. Be careful doing your own timers. It's very hard to handle all the race conditions involved. You may already know this, but I'm warning just in case. I've been meaning to write some objects to make this easier to do. One OS handle can handle an arbitrary number of connections, btw. -corey [EMAIL PROTECTED] wrote: > > PS, I’m using perform_one_op() with a 10 second timer. Also, can one > OS handler contain multiple connections, or do I need to allocate a > new OS handler for each connection I make? > > ------------------------------------------------------------------------ > > *From:* [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] *On Behalf > Of [EMAIL PROTECTED] > *Sent:* Thursday, August 02, 2007 10:53 AM > *To:* [email protected] > *Subject:* [Openipmi-developer] Blocking? > > Using OpenIPMI over LAN, can I expect any blocking situations? My main > concern is in the LAN communication itself and sensor readings. In > other words, do I need to create my own timeout signal handling for > any function of OpenIPMI or is that already handled internally? > > Thanks, > > Jen > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Openipmi-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openipmi-developer
