Re: How to register a octect stream?

Manuel Cano Muñoz <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <OFF6F81224.FC9A4A93-ONC12571AA.0049CEB3-C12571AA.004A4B15@amper.es>
Hi. Thanks.

I've searched throug the mail archives and found one mail from you about the same thing.
Now i'm having a strange error because MSVC tells me that

c:\documents and settings\mcano\mis documentos\proyectos\mib\nstagentsubagentobject.c(78) : error C2275:
'netsnmp_handler_registration' : illegal use of this type as an expression

I've readed the agent_handler.h file and it is a typedef of a struct, but I don't see nothing strange there.
Any clue?


Thank you



                                                                                                                        
             "Dave Shield"                                                                                              
             <[email protected]>                                                                                 
             Enviado por:                                                                                          Para 
             [email protected]                  "Manuel Cano Muñoz" <[email protected]>                           
                                                                                                                     cc 
                                                         [email protected]                           
             13/07/2006 15:22                                                                                    Asunto 
                                                         Re: How to register a octect stream?                           
                                                                                                                        
                                                                                                                        
                                                                                                                        
                                                                                                                        
                                                                                                                        
                                                                                                                        






On 13/07/06, Manuel Cano Muñoz <[email protected]> wrote:


      In the examples, I see the function `netsnmp_register_int_instance' to register an int, but how can I register a
      string?



Try using 'netsnmp_register_watched_scalar()'.
This can be used for both integers and string-valued objects.
(And has the advantage over netsnmp_register_int_instance() of
 handling invalid requests correctly too )

Dave


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
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
graycol.gif (image/gif, 105 B) - not displayed
pic32494.gif (image/gif, 1.2 KB) - not displayed
ecblank.gif (image/gif, 45 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.