This is a discussion on Re: How to register a octect stream? within the SNMP Users forums, part of the Networking and Network Related category; --===============0108210003== Content-Type: multipart/alternative; boundary="----=_Part_22212_25864235.1152800735228" ------=_Part_22212_25864235.1152800735228 Content-Type: text/plain; charset=ISO-8859-1; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============0108210003==
Content-Type: multipart/alternative; boundary="----=_Part_22212_25864235.1152800735228" ------=_Part_22212_25864235.1152800735228 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 13/07/06, Manuel Cano Mu=F1oz <mcano@amper.es> wrote: > > netsnmp_handler_registration * reg =3D netsnmp_create_handler_registrati= on( > "nstAgentSubagentString", NULL, > nstAgentSubagentString_oid, OID_LENGTH(nstAgentSubagentString_oid), > HANDLER_CAN_RONLY); > A little more context, please. It's impossible to reliably debug programming problems from individual lines of code. The only possibility that springs to mind is if this line (a combined declaration and assignment) comes in the middle of various other assignments, etc. Strictly speaking, all the declarations should come first, before any executable statements. Sometimes you can get away with mix-n-matching, depending on how fussy the compiler is feeling. But that's a complete guess, because you've provided minimal information as to what you're actually doind. This does make providing support significantly harder :-( It gives me the same error even if I put only: > > netsnmp_handler_registration; > Well, that's a bogus statement anyway, so I'm not surprised it throws an error! Dave ------=_Part_22212_25864235.1152800735228 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 13/07/06, <b class=3D"gmail_sendername">Manuel Cano Mu=F1oz</b> <<a h= ref=3D"mailto:mcano@amper.es">mcano@amper.es</a>> wrote:<div><span class= =3D"gmail_quote"></span><blockquote class=3D"gmail_quote" style=3D"border-l= eft: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:= 1ex;"> <div><div> <p><font face=3D"Courier New">=09netsnmp_handler_registration * reg =3D net= snmp_create_handler_registration(</font><br> <font face=3D"Courier New">=09=09=09=09=09=09=09=09</font><font color=3D"#8= 00000" face=3D"Courier New">"nstAgentSubagentString"</font><font = face=3D"Courier New">, NULL,</font><br> <font face=3D"Courier New">=09=09=09=09=09=09=09=09nstAgentSubagentStrin g_o= id, OID_LENGTH(nstAgentSubagentString_oid),</font><br> <font face=3D"Courier New">=09=09=09=09=09=09=09=09HANDLER_CAN_RONLY);</fon= t></p></div></div></blockquote><div><br> <br> A little more context, please. It's impossible to reliably debu= g programming<br> problems from individual lines of code.<br> <br> The only possibility that springs to mind is if this line (a combined decla= ration<br> and assignment) comes in the middle of various other assignments, etc. = ; Strictly<br> speaking, all the declarations should come first, before any executable sta= tements.<br> Sometimes you can get away with mix-n-matching, depending on how fussy the<= br> compiler is feeling.<br> <br> <br> But that's a complete guess, because you've provided minimal information as= <br> to what you're actually doind. This does make providing support= significantly<br> harder :-(<br> <br> </div><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid= rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><d= iv><p><font face=3D"Courier New">It gives me the same error even if I put o= nly: </font><br> <br> <font face=3D"Courier New">=09netsnmp_handler_registration;</font></p></div= ></div></blockquote><div><br> Well, that's a bogus statement anyway, so I'm not surprised it throws an er= ror!<br> <br> Dave</div></div> ------=_Part_22212_25864235.1152800735228-- --===============0108210003== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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=...057&dat=121642 --===============0108210003== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0108210003==-- |