Passing methods as handlers?
"Schmidt-Goertz, Ulrich" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <9D8B03A62798A24B95E5E64A16A89904027B1524@SRV-KOMMSYS.intern.plath.de> |
Hi, I am trying to add agent functionality to my program. Since I use OOP, I'd like to make the handlers methods of my agent class. However, so far my attempts have met the following error (on the line where I do netsnmp_register_scalar()): argument of type 'int (SnmpAgent::)(netsnmp_mib_handler*, netsnmp_handler_registration*, netsnmp_agent_request_info*, netsnmp_request_info*)' does not match 'int (*)(netsnmp_mib_handler*, netsnmp_handler_registration*, netsnmp_agent_request_info*, netsnmp_request_info*)' SnmpAgent is my own class. The handlers themselves and the netsnmp_register_scalar() invocations are just as mib2c generated them (with concrete data inserted, of course.) Is there any way to make this work? Best regards, Ulrich ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ 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