1 |
NAME |
2 |
Net::SNMP::EV - adaptor to integrate Net::SNMP into the EV event loop. |
3 |
|
4 |
SYNOPSIS |
5 |
use EV; |
6 |
use Net::SNMP; |
7 |
use Net::SNMP::EV; |
8 |
|
9 |
# just use Net::SNMP and EV as you like: |
10 |
|
11 |
... start non-blocking snmp request(s)... |
12 |
|
13 |
EV::loop; |
14 |
|
15 |
DESCRIPTION |
16 |
This module coerces the Net::SNMP scheduler to use the EV high |
17 |
performance event loop as underlying event loop, i.e. EV will be used by |
18 |
Net::SNMP for all events. |
19 |
|
20 |
This integrates Net::SNMP into EV: You can make non-blocking Net::SNMP |
21 |
calls and as long as your main program uses the EV event loop, they will |
22 |
run in parallel to anything else that uses EV or AnyEvent. |
23 |
|
24 |
This module does not export anything and does not require you to do |
25 |
anything special apart from loading it. |
26 |
|
27 |
The module is quite short, you can use it as example to implement a |
28 |
similar integration into e.g. Event or other event loops. |
29 |
|
30 |
BUGS |
31 |
Net::SNMP has no (documented or otherwise) API to do what this module |
32 |
does. As such, this module rummages around in the internals of Net::SNMP |
33 |
in a rather inacceptable way, and as thus might be very sensitive to the |
34 |
version of Net::SNMP used (it has been tested with some 5.x versions |
35 |
only, YMMV). |
36 |
|
37 |
SEE ALSO |
38 |
EV, Net::SNMP, AnyEvent, Glib::EV. |
39 |
|
40 |
AUTHOR |
41 |
Marc Lehmann <schmorp@schmorp.de> |
42 |
http://home.schmorp.de/ |
43 |
|