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: a07f3367d7,131e3d946b949413 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.19.132 with SMTP id f4mr3045529wie.2.1363061275277; Mon, 11 Mar 2013 21:07:55 -0700 (PDT) Path: g1ni60774wig.0!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.108.MISMATCH!feeder2.cambriumusenet.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!216.40.29.245.MISMATCH!novia!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!backlog2.nntp.ams.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.16.MISMATCH!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: UDP networking with Ada References: Date: Fri, 08 Mar 2013 06:58:30 -0500 Message-ID: <85obeu6r2x.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt) Cancel-Lock: sha1:c6PBhroI+HHCQlSYju+W/74N5XQ= MIME-Version: 1.0 X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: c082a5139d268c55ab71415599 X-Received-Bytes: 1658 X-Original-Bytes: 2039 Content-Type: text/plain Date: 2013-03-08T06:58:30-05:00 List-Id: "Peter C. Chapin" writes: > 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. > > I assume Florist probably would work on Unix-like systems and Win32Ada > would work on Windows systems (haven't looked at them in detail), but > I was hoping for something cross-platform "out of the box." > > Or maybe I'm misunderstanding what I see with GNAT.Sockets? GNAT.Sockets has this: type Mode_Type is (Socket_Stream, Socket_Datagram); ... procedure Create_Socket (Socket : out Socket_Type; Family : Family_Type := Family_Inet; Mode : Mode_Type := Socket_Stream); Datagram would be UDP. I think I've used that once or twice. -- -- Stephe