comp.lang.ada
 help / color / mirror / Atom feed
* sockets in ADA
@ 2001-10-17  8:44 F
  2001-10-17  9:58 ` pfrett
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: F @ 2001-10-17  8:44 UTC (permalink / raw)


Can someone tell me were can i find documentation about the use of sockets
in ada language?
I'd like to build a Server program able to comunicate whith different client
programs.
Thank you
Phosphorus





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

* Re: sockets in ADA
  2001-10-17  8:44 sockets in ADA F
@ 2001-10-17  9:58 ` pfrett
  2001-10-17 11:00   ` John McCabe
  2001-10-17 12:30   ` Pascal Obry
  2001-10-17 10:17 ` Preben Randhol
                   ` (3 subsequent siblings)
  4 siblings, 2 replies; 9+ messages in thread
From: pfrett @ 2001-10-17  9:58 UTC (permalink / raw)


F wrote:

> Can someone tell me were can i find documentation about the use of sockets
> in ada language?
> I'd like to build a Server program able to comunicate whith different
> client programs.
> Thank you
> Phosphorus

there is an ADAsocket package on linux .. it may also work on windows.

Bye,
patrice



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

* Re: sockets in ADA
  2001-10-17  8:44 sockets in ADA F
  2001-10-17  9:58 ` pfrett
@ 2001-10-17 10:17 ` Preben Randhol
  2001-10-17 11:52 ` Marc A. Criley
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Preben Randhol @ 2001-10-17 10:17 UTC (permalink / raw)


On Wed, 17 Oct 2001 10:44:14 +0200, F wrote:
> Can someone tell me were can i find documentation about the use of sockets
> in ada language?
> I'd like to build a Server program able to comunicate whith different client
> programs.

Here you can find AdaSockets. I believe GNAT also has a socket package
now, but is not yet in the public version of GNAT.

http://www.infres.enst.fr/ANC/

Here is a Simple MUD that uses the Ada Sockets
http://members.aol.com/drveg/mud/

Here from the "Big Online Book of Linux Ada Programming", though it
looks like it also does some thin binding to the C lib ie. not using
AdaSockets.

http://www.vaxxine.com/pegasoft/homes/16.html#16.23

Hope it helps :-)
__
Preben Randhol



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

* Re: sockets in ADA
  2001-10-17  9:58 ` pfrett
@ 2001-10-17 11:00   ` John McCabe
  2001-10-17 12:30   ` Pascal Obry
  1 sibling, 0 replies; 9+ messages in thread
From: John McCabe @ 2001-10-17 11:00 UTC (permalink / raw)


On Wed, 17 Oct 2001 11:58:49 +0200, pfrett <frett@iname.com> wrote:

>F wrote:
>
>> Can someone tell me were can i find documentation about the use of sockets
>> in ada language?
>> I'd like to build a Server program able to comunicate whith different
>> client programs.
>> Thank you
>> Phosphorus
>
>there is an ADAsocket package on linux .. it may also work on windows.
>
>Bye,
>patrice

For a Winsock 2 binding go to:

http://www.adapower.com/reuse/winsock2.html

For BSD Socket bindings (including one for Win32) go to:

http://www.adapower.com/os/bsd-sockets.html

There are some examples here (I think) of using sockets.

Although the basics of using Sockets on BSD and Win32 is pretty much
the same, there are differences which need to be considered if you
want to do anything interesting with them (especially Winsock). For
instance Winsock uses macros FD_SET, FD_CLR, and FD_ZERO, but the
underlying structure is totally different between Winsock and BSD. I
would assume that, as long as you use one of the above bindings, these
differences should be catered for.

You may already know a fair bit about sockets, but if not....

For resources related to Winsock 2, have a look at:

http://www.stardust.com/winsock/index.htm

For more information on BSD sockets, try a book like:

UNIX Network Programming Vol 1: Networking APIs - Sockets and XTI  
by W. Richard Stevens. Published by Prentice Hall, ISBN 013490012X

Hope this helps.
John



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

* Re: sockets in ADA
  2001-10-17  8:44 sockets in ADA F
  2001-10-17  9:58 ` pfrett
  2001-10-17 10:17 ` Preben Randhol
@ 2001-10-17 11:52 ` Marc A. Criley
  2001-10-17 16:38 ` Richard Pinkall-Pollei
  2001-10-17 17:31 ` tmoran
  4 siblings, 0 replies; 9+ messages in thread
From: Marc A. Criley @ 2001-10-17 11:52 UTC (permalink / raw)


F wrote:
> 
> Can someone tell me were can i find documentation about the use of sockets
> in ada language?
> I'd like to build a Server program able to comunicate whith different client
> programs.
> Thank you
> Phosphorus

You may wish to examine "Ada Web Server"
(http://perso.wanadoo.fr/pascal.obry/aws.html) as both a way to
understand how to do socket programming in Ada, and as a very useful and
capable client/server tool itself.

Marc A. Criley
Senior Staff Engineer
Quadrus Corporation
www.quadruscorp.com



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

* Re: sockets in ADA
  2001-10-17  9:58 ` pfrett
  2001-10-17 11:00   ` John McCabe
@ 2001-10-17 12:30   ` Pascal Obry
  2001-10-22 18:17     ` Samuel Tardieu
  1 sibling, 1 reply; 9+ messages in thread
From: Pascal Obry @ 2001-10-17 12:30 UTC (permalink / raw)



pfrett <frett@iname.com> writes:

> there is an ADAsocket package on linux .. it may also work on windows.

It does since it is used on AWS (Ada Web Server). Win32 port as been done by
Dmitriy Anisimkov and can be downloaded on 

        http://vagul.tripod.com/
  or
        http://perso.wanadoo.fr/pascal.obry/contrib.html

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--|
--| "The best way to travel is by means of imagination"



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

* Re: sockets in ADA
  2001-10-17  8:44 sockets in ADA F
                   ` (2 preceding siblings ...)
  2001-10-17 11:52 ` Marc A. Criley
@ 2001-10-17 16:38 ` Richard Pinkall-Pollei
  2001-10-17 17:31 ` tmoran
  4 siblings, 0 replies; 9+ messages in thread
From: Richard Pinkall-Pollei @ 2001-10-17 16:38 UTC (permalink / raw)


On Wed, 17 Oct 2001 10:44:14 +0200, F <phosphorus@libero.it> wrote:

>Can someone tell me were can i find documentation about the use of
>sockets in ada language?  I'd like to build a Server program able to
>comunicate whith different client programs.

The Florist package from Florida State University implements POSIX
standard sockets for Ada.  However, unless you've won the lottery, or
have a boss who's willing to fork over cash for documentation (POSIX
standards documents are expensive), you'll need to study the source
files to understand how to use it, and even then, there'll be stuff
you just have to discover for yourself by trying it.

Others have already mentioned the AdaSockets package.

The third option is to use `Interfaces.C' to use your OS's native
sockets library.

---
Great truths about life that little children have learned:
	#5:  You can't trust dogs to watch your food.

______________________________________________________________________________
Posted Via Binaries.net = SPEED+RETENTION+COMPLETION = http://www.binaries.net



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

* Re: sockets in ADA
  2001-10-17  8:44 sockets in ADA F
                   ` (3 preceding siblings ...)
  2001-10-17 16:38 ` Richard Pinkall-Pollei
@ 2001-10-17 17:31 ` tmoran
  4 siblings, 0 replies; 9+ messages in thread
From: tmoran @ 2001-10-17 17:31 UTC (permalink / raw)


> Can someone tell me were can i find documentation about the use of sockets
> in ada language?
> I'd like to build a Server program able to comunicate whith different client
> programs.
  For a short and simple web server (that uses Claw.Sockets) see:
www.adapower.com/reuse/clawweb.html
To see Claw.Sockets itself, download the source from
www.rrsoftware.com
(The $>0 version has additional stuff, but isn't needed for a simple
web server.)
Full disclosure: I wrote it so I'm probably biased.



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

* Re: sockets in ADA
  2001-10-17 12:30   ` Pascal Obry
@ 2001-10-22 18:17     ` Samuel Tardieu
  0 siblings, 0 replies; 9+ messages in thread
From: Samuel Tardieu @ 2001-10-22 18:17 UTC (permalink / raw)
  To: comp.lang.ada

On 17/10, Pascal Obry wrote:
| 
| pfrett <frett@iname.com> writes:
| 
| > there is an ADAsocket package on linux .. it may also work on windows.
| 
| It does since it is used on AWS (Ada Web Server). Win32 port as been done by
| Dmitriy Anisimkov and can be downloaded on 
| 
|         http://vagul.tripod.com/
|   or
|         http://perso.wanadoo.fr/pascal.obry/contrib.html

The latest AdaSockets package works now on both Unix and Windows platforms,
thanks to Dmitriy and Pascal.

It can be fetched from:

  http://www.rfc1149.net/devel/adasockets/

Happy networking.

 Sam




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

end of thread, other threads:[~2001-10-22 18:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-17  8:44 sockets in ADA F
2001-10-17  9:58 ` pfrett
2001-10-17 11:00   ` John McCabe
2001-10-17 12:30   ` Pascal Obry
2001-10-22 18:17     ` Samuel Tardieu
2001-10-17 10:17 ` Preben Randhol
2001-10-17 11:52 ` Marc A. Criley
2001-10-17 16:38 ` Richard Pinkall-Pollei
2001-10-17 17:31 ` tmoran

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