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-Thread: 103376,131e3d946b949413 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.24.232 with SMTP id x8mr1058528wif.7.1362767325989; Fri, 08 Mar 2013 10:28:45 -0800 (PST) Path: g1ni54054wig.0!nntp.google.com!goblin3!goblin.stu.neva.ru!inn5.news.alteholz.net!easy.in-chemnitz.de!feeder.erje.net!eu.feeder.erje.net!nuzba.szn.dk!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: Tero Koskinen Newsgroups: comp.lang.ada Subject: Re: UDP networking with Ada Date: Fri, 8 Mar 2013 20:28:44 +0200 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: <20130308202844.67ad9dddcc60f2dbfb17e15d@iki.fi> References: NNTP-Posting-Host: dsl-trebrasgw2-54f941-244.dhcp.inet.fi Mime-Version: 1.0 X-Trace: munin.nbi.dk 1362767325 4313 84.249.65.244 (8 Mar 2013 18:28:45 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Fri, 8 Mar 2013 18:28:45 +0000 (UTC) X-Newsreader: Sylpheed 3.3.0 (GTK+ 2.24.16; x86_64-redhat-linux-gnu) Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: 2013-03-08T20:28:44+02:00 List-Id: On Thu, 7 Mar 2013 21:46:13 -0600 "Randy Brukardt" wrote: > "Peter C. Chapin" wrote in message > news:SL-dnUB_sIRxqKTM4p2dnAA@giganews.com... > >I have an interest in doing some network programming in Ada using UDP. I > >assumed I could use GNAT.Sockets but in reading the specification of that > >package it appears that it only supports TCP. I browsed around the various > >other GNAT packages but I didn't see anything for UDP and now I'm wondering > >what my options are. > > NCSockets has a "datagram" type (which uses UDP). I don't know how > well-tested it is, I think I used it once for some DNS experiments (but I'm > sure that the TCP code has been tested much more). > > NCSockets is a descendant of Claw.Sockets; there are of course Windows > versions and there is an unfinished 64-bit Linux version (started by Tero > K.) that will get a lot more work in the next few weeks as I'll be using it > to port Ada-Auth's server to a new Linux box. My public changes are available at https://bitbucket.org/tkoskine/not-claw-sockets-linux-x86 Don't be fooled by the repository name, the code works (barely) only on x86_64 (not on i386). And while I remember, I think I hacked select so that it works with only one socket at time... (It is quite hard to create a binding to select(2), especially if you want it to work on multiple architectures without code changes.) > > Randy. > > -- Tero Koskinen - http://iki.fi/tero.koskinen/