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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,da047bd41d707e54 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!t-online.de!inka.de!peernews!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Oliver Kowalke Newsgroups: comp.lang.ada Subject: Re: networking support? Date: Thu, 18 Dec 2008 12:55:35 +0100 Organization: 1&1 Internet AG Message-ID: References: <494a17a9$0$30226$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: drsd-4dbcb1ce.pool.einsundeins.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: online.de 1229601202 20432 77.188.177.206 (18 Dec 2008 11:53:22 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Thu, 18 Dec 2008 11:53:22 +0000 (UTC) User-Agent: KNode/0.10.9 Xref: g2news2.google.com comp.lang.ada:4003 Date: 2008-12-18T12:55:35+01:00 List-Id: Georg Bauhaus wrote: > Oliver Kowalke schrieb: >> Hi, >> does Ada support IPsec (key management sockets)? How is io-demultiplexing >> used (select, epoll, kqueue, /dev/pool,...) used? > > These being OS functions, you probably have interfacing > packages for your compiler. For some, you might be able to use > POSIX packages; others, such as access to /dev/anything are > really OS specific, not typically built into > any programming language, but rather available as > library calls. In case you want to call them directly, > as you would using C, just call them, after, say, > > function select > (nfds: C.int, ... etc etc ...) retrun C.int; > > pragma Inport(C, select); Because I'm novice to Ada is it true that I can call C functions and C++ classes from Ada? If yes - what is the prefered usage: should I implement functionality (for isntacne networking) in C++ classes and call them from Ada or use the C-functions (system calls) and implement the classes/behaviour in Ada (get benefits from Ada's safety)? Oliver