I am developing an application that have both an SNMP interface and a
GUI. I would like to access the SNMP counters like snmpInPkts, snmpOutPkts etc to show in the GUI. I have tested to send SNMP request to localhost and
it works but it also increases the counters and is therefore not so nice. Relo
cket application, maybe
not> But how can it be so important? It should be reassuring that your> enquiry traffic is also shown. Do you
want to avoid incrementing the> interface counters as well? Gesendet:
Dienstag, 30.> April 2013 um 09:47 Uhr Von: "Gustav
running count of> course)Gesendet: Dienstag, 30. April 2013
um 15:35 Uhr Von:> "Gustav Evertsson" An: "Tim Cox" > Cc:
net-snmp-coders@lists.sourceforge.net Betreff: Re: Access the> SNMP Counters without increasing them Yes, the problem is that
they> ar
>static struct sockaddr_in here = { AF_INET }
;>static int sixteen = 16;> >static int s = -1;>
>int x;> > >if (s <
0)>{> s = socket(AF_INET, SOCK_DGRAM);>
> if (s < 0) return -1;> > x = bind(s, (struct
s