comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: UDP networking with Ada
Date: Fri, 08 Mar 2013 06:58:30 -0500
Date: 2013-03-08T06:58:30-05:00	[thread overview]
Message-ID: <85obeu6r2x.fsf@stephe-leake.org> (raw)
In-Reply-To: SL-dnUB_sIRxqKTM4p2dnAA@giganews.com

"Peter C. Chapin" <PChapin@vtc.vsc.edu> 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



  parent reply	other threads:[~2013-03-08 11:58 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-08  0:50 UDP networking with Ada Peter C. Chapin
2013-03-08  3:46 ` Randy Brukardt
2013-03-08 18:28   ` Tero Koskinen
2013-03-08  6:47 ` anon
2013-03-08  7:50   ` Simon Wright
2013-03-08 12:14   ` Peter C. Chapin
2013-03-08  8:37 ` Dmitry A. Kazakov
2013-03-08 11:50   ` Simon Wright
2013-03-08 12:12     ` Dmitry A. Kazakov
2013-03-08 12:17       ` Peter C. Chapin
2013-03-08 15:39         ` Dmitry A. Kazakov
2013-03-08  8:58 ` Jacob Sparre Andersen
2013-03-08 11:58 ` Stephen Leake [this message]
2013-03-16 22:27 ` Kevin K
replies disabled

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