comp.lang.ada
 help / color / mirror / Atom feed
* Sockets
@ 2002-05-22  8:00 ProLogic
  2002-05-22  8:53 ` Sockets Jean-Claude MAHIEUX
                   ` (3 more replies)
  0 siblings, 4 replies; 37+ messages in thread
From: ProLogic @ 2002-05-22  8:00 UTC (permalink / raw)


What's the best way to implement and use TCP/IP sockets, client and
server... ??

Importing C functions, or... ?

Thanks
ProLogic





^ permalink raw reply	[flat|nested] 37+ messages in thread
* Sockets
@ 2006-11-15  9:34 Maciej Sobczak
  2006-11-15  9:59 ` Sockets Roger Blum
                   ` (2 more replies)
  0 siblings, 3 replies; 37+ messages in thread
From: Maciej Sobczak @ 2006-11-15  9:34 UTC (permalink / raw)


Hi,

Let's say that I would like to write an Ada program that uses sockets 
and compile and run it on my Linux box.

There three ways to do this that I'm aware of:

1. Use GNAT runtime library. The advantage is that it will be portable 
to other platforms (as long as GNAT and its library is portable there).

2. Use C interfacing and call the system functions directly. The 
advantage is that it will be portable to other compilers on the same 
platform (no dependency on GNAT run-time libs).

3. Use Florist. The disadvantage is that I'm too lazy to install it 
(it's another package) and I don't want to impose this requirement on 
other lazy users of the same code.

Is the above correct? What would you recommend?

BTW - Unix sockets are of interest as well.

-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



^ permalink raw reply	[flat|nested] 37+ messages in thread
* Re: Sockets.
@ 1996-03-25  0:00 Simon Johnston
  0 siblings, 0 replies; 37+ messages in thread
From: Simon Johnston @ 1996-03-25  0:00 UTC (permalink / raw)


> X-Newsreader: Gnus v5.0.15
>
>         In the tradition of not re-inventing the wheel, has anyone
> completed or working on a UNIX sockets binding for Ada95?  I once had
> contact with the author of Paradise over a year ago, and he said he would
> attempt it when GNAT advanced some more, but I've found nothing yet.

I have been trying to get help on this topic for some time. I am
using the Win32 bindings to access the Winsock API which may/may-not
be of use to you. My problem is actually using the binding once I
have it. If anyone has any experience please let me know.

>         In addition, would it be possible to define a generic package
> with a discriminant, and then use that discriminate to instantiate a
> generic private child package?  From what I can tell, the answer should
> be no, but I'm not sure.
>
>         The reason I ask is it would make a package abstracting a
> system-dependant but common function easier and smaller; you instantiate
> the abtracted generic with a discriminant describing your OS type, and
> the package then instantiates the low-level binding appropriate to that
> OS...
>
> -- Cerebus <tmiller@ims.advantis.com>
> "Just a thought."
>
>

with StandardDisclaimer; use StandardDisclaimer;
package Sig is
--,-------------------------------------------------------------------------.
--|Simon K. Johnston - Development Engineer (C++/Ada95) |ICL Retail Systems |
--|-----------------------------------------------------|3/4 Willoughby Road|
--|Unix Mail: skj@acm.org                               |Bracknell          |
--|Telephone: +44 (0)1344 476320 Fax: +44 (0)1344 476302|Berkshire          |
--|Internal : 7261 6320   OP Mail: S.K.Johnston@BRA0801 |RG12 8TJ           |
--|WWW URL  : http://www.acm.org/~skj/                  |United Kingdom     |
--`-------------------------------------------------------------------------'
end Sig;




^ permalink raw reply	[flat|nested] 37+ messages in thread
* Sockets.
@ 1996-03-21  0:00 Timothy Miller
  0 siblings, 0 replies; 37+ messages in thread
From: Timothy Miller @ 1996-03-21  0:00 UTC (permalink / raw)


X-Newsreader: Gnus v5.0.15

	In the tradition of not re-inventing the wheel, has anyone
completed or working on a UNIX sockets binding for Ada95?  I once had
contact with the author of Paradise over a year ago, and he said he would
attempt it when GNAT advanced some more, but I've found nothing yet.

	In addition, would it be possible to define a generic package
with a discriminant, and then use that discriminate to instantiate a
generic private child package?  From what I can tell, the answer should
be no, but I'm not sure.  

	The reason I ask is it would make a package abstracting a
system-dependant but common function easier and smaller; you instantiate
the abtracted generic with a discriminant describing your OS type, and
the package then instantiates the low-level binding appropriate to that
OS... 

-- Cerebus <tmiller@ims.advantis.com>
"Just a thought."




^ permalink raw reply	[flat|nested] 37+ messages in thread

end of thread, other threads:[~2006-11-17  2:11 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-22  8:00 Sockets ProLogic
2002-05-22  8:53 ` Sockets Jean-Claude MAHIEUX
2002-05-22 10:55 ` Sockets David C. Hoos, Sr.
2002-05-22 11:59   ` Sockets ProLogic
2002-05-22 12:34     ` Sockets Preben Randhol
2002-05-22 18:49     ` Sockets Simon Wright
2002-05-22 17:27 ` Sockets tmoran
2002-05-22 18:39 ` Sockets Randy Brukardt
2002-05-22 19:11   ` Sockets Preben Randhol
2002-05-22 19:18     ` Sockets Preben Randhol
2002-05-22 21:26       ` Sockets David C. Hoos
2002-05-22 19:52     ` Sockets Marin David Condic
2002-05-27 11:16       ` Sockets chris.danx
2002-05-28 16:42         ` Sockets Marin David Condic
2002-05-23  2:33   ` Sockets Robert Dewar
2002-05-23 20:49     ` Sockets Randy Brukardt
2002-05-23  2:34   ` Sockets Robert Dewar
2002-05-23  5:07     ` Sockets tmoran
2002-05-24  3:02     ` Sockets Steve Doiel
2002-05-24 13:58       ` Sockets Marin David Condic
2002-05-25  7:21         ` Sockets Preben Randhol
2002-05-25  8:03           ` Sockets Simon Wright
2002-05-25  8:23             ` Sockets Preben Randhol
2002-05-25 15:58               ` Sockets Robert Dewar
2002-05-29  1:25             ` Sockets Robert Dewar
2002-05-29  5:26               ` Sockets Simon Wright
2002-05-29  1:28             ` Sockets Robert Dewar
2002-05-28 16:50           ` Sockets Marin David Condic
  -- strict thread matches above, loose matches on Subject: below --
2006-11-15  9:34 Sockets Maciej Sobczak
2006-11-15  9:59 ` Sockets Roger Blum
2006-11-15 10:43   ` Sockets Maciej Sobczak
2006-11-16 16:28     ` Sockets Chad  R. Meiners
2006-11-17  2:11     ` Sockets Marc A. Criley
2006-11-15 11:59 ` Sockets Warner BRUNS
2006-11-15 23:13 ` Sockets Simon Wright
1996-03-25  0:00 Sockets Simon Johnston
1996-03-21  0:00 Sockets Timothy Miller

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