… | |
… | |
25 | run in parallel to anything else that uses EV or AnyEvent. |
25 | run in parallel to anything else that uses EV or AnyEvent. |
26 | |
26 | |
27 | This module does not export anything and does not require you to do |
27 | This module does not export anything and does not require you to do |
28 | anything special apart from loading it. |
28 | anything special apart from loading it. |
29 | |
29 | |
30 | The module is quite short, you cna use it to do a similar integration into |
30 | The module is quite short, you can use it as example to implement a |
31 | e.g. Event or other event loops. |
31 | similar integration into e.g. Event or other event loops. |
32 | |
32 | |
33 | =cut |
33 | =cut |
34 | |
34 | |
35 | package Net::SNMP::EV; |
35 | package Net::SNMP::EV; |
36 | |
36 | |
… | |
… | |
38 | use strict; |
38 | use strict; |
39 | |
39 | |
40 | use Net::SNMP (); |
40 | use Net::SNMP (); |
41 | use EV (); |
41 | use EV (); |
42 | |
42 | |
43 | our $VERSION = '0.1'; |
43 | our $VERSION = '0.12'; |
44 | |
44 | |
45 | our @W; |
45 | our @W; |
46 | our $DISPATCHER = $Net::SNMP::DISPATCHER; |
46 | our $DISPATCHER = $Net::SNMP::DISPATCHER; |
47 | |
47 | |
48 | # handle as many snmp events as possible |
48 | # handle as many snmp events as possible |