comp.lang.ada
 help / color / mirror / Atom feed
From: Oliver Kowalke <oliver.kowalke@gmx.de>
Subject: Re: networking support?
Date: Thu, 18 Dec 2008 12:55:35 +0100
Date: 2008-12-18T12:55:35+01:00	[thread overview]
Message-ID: <giddji$jug$1@online.de> (raw)
In-Reply-To: 494a17a9$0$30226$9b4e6d93@newsspool1.arcor-online.net

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



  reply	other threads:[~2008-12-18 11:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17 18:33 networking support? Oliver Kowalke
2008-12-18  9:28 ` Georg Bauhaus
2008-12-18 11:55   ` Oliver Kowalke [this message]
2008-12-18 12:47     ` Georg Bauhaus
2008-12-19 21:49       ` Maciej Sobczak
2008-12-19 23:05         ` Oliver Kowalke
2008-12-20 19:23           ` Maciej Sobczak
2008-12-21 17:57             ` Oliver Kowalke
2008-12-21 22:21               ` Maciej Sobczak
2008-12-19 23:57         ` Georg Bauhaus
2008-12-18 18:09   ` Jeffrey R. Carter
2008-12-18 18:30     ` Georg Bauhaus
2008-12-18  9:54 ` Jacob Sparre Andersen
2008-12-18 16:14 ` anon
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox