From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a0c:f494:: with SMTP id i20mr15383395qvm.179.1591464841611; Sat, 06 Jun 2020 10:34:01 -0700 (PDT) X-Received: by 2002:a9d:22aa:: with SMTP id y39mr11588914ota.76.1591464840916; Sat, 06 Jun 2020 10:34:00 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 6 Jun 2020 10:34:00 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2001:8b0:ca:2:0:0:0:fd; posting-account=TiHetgoAAACluCgYkPc8-TWs6dBNgSne NNTP-Posting-Host: 2001:8b0:ca:2:0:0:0:fd References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <1e9ca8a9-4801-485b-b995-103d45eca923o@googlegroups.com> Subject: Re: Coding access to a C's pointer - pointer From: Bob Goddard <1963bib@googlemail.com> Injection-Date: Sat, 06 Jun 2020 17:34:01 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58987 Date: 2020-06-06T10:34:00-07:00 List-Id: On Saturday, 6 June 2020 18:01:41 UTC+1, Dmitry A. Kazakov wrote: [...] > > Would I need to drop into C and handle it there? > > P.S. Why do not you implement SNMP instead of using alien library? SNMP > is not rocket science. I think everyone feels my pain, and at the moment, life is too short to re-implement snmp. Net-snmp code can only be describe as how not to write an application and how not to write documentation. Anyways... I had already done the following and created the pdu record: function SNMP_Synch_Response (Session : access snmp_Session; PDU : access snmp_pdu; Response : System.Address) return Interfaces.C.int; pragma Import (C, SNMP_Synch_Response, "snmp_synch_response"); I'll still look...