Re: ASN_IPADDRESS data type

This is a discussion on Re: ASN_IPADDRESS data type within the SNMP Users forums, part of the Networking and Network Related category; On Fri, 2005-05-27 at 09:01, Victor Yeo wrote: > but in the callback handler, i want to ... ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-27-2005
Dave Shield
 
Posts: n/a
Default Re: ASN_IPADDRESS data type

On Fri, 2005-05-27 at 09:01, Victor Yeo wrote:

> but in the callback handler, i want to ... add a row to table,
> but i don't have access to ds (netsnmp_table_data_set) variable,



a) You should have thought of that when you created the table :-)

Rather than declare
netsnmp_table_data_set* ds;

as a local variable within the initialisation routine, you could
always declare it as a global (file-scoped) variable. It'll then
be accessible from anywhere. Ugly, but it works.


b) We should have thought of that when we created the helper :-(

You're quite correct - this is a missing API, which would avoid
the need for such poor programming techniques as the above.


Dave



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0