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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,64513ef2312f1902 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-17 04:01:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.238.2.15!skynet.be!skynet.be!dispose.news.demon.net!news.demon.co.uk!demon!pipehawk.demon.co.uk!not-for-mail From: john.mccabe@emrad.com.nospam (John McCabe) Newsgroups: comp.lang.ada Subject: Re: sockets in ADA Date: Wed, 17 Oct 2001 11:00:01 GMT Organization: Emrad Ltd Message-ID: <3bcd604a.9958930@news.demon.co.uk> References: <9qjg5t$1qtd$1@newsreader1.mclink.it> <3bcd5441$0$204$626a54ce@news.free.fr> NNTP-Posting-Host: pipehawk.demon.co.uk X-NNTP-Posting-Host: pipehawk.demon.co.uk:158.152.226.81 X-Trace: news.demon.co.uk 1003316408 nnrp-08:15545 NO-IDENT pipehawk.demon.co.uk:158.152.226.81 X-Complaints-To: abuse@demon.net X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:14793 Date: 2001-10-17T11:00:01+00:00 List-Id: On Wed, 17 Oct 2001 11:58:49 +0200, pfrett 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