From: "lekktu@gmail.com" <lekktu@gmail.com>
Subject: Re: Question about Streams and UDP sockets using GNAT.Sockets
Date: 19 Jul 2006 13:54:47 -0700
Date: 2006-07-19T13:54:47-07:00 [thread overview]
Message-ID: <1153342487.765307.77990@m79g2000cwm.googlegroups.com> (raw)
In-Reply-To: m2odvlh13m.fsf@grendel.local
Simon Wright wrote:
> The only way I can see to get UDP working is
>
> (1) stream the record to be output to a memory stream,then write the
> bytes of the stream to the socket stream in one go;
This has been suggested, but it is overkill for my needs, as the UDP
sockets are going to exchange only very simple String (or maybe
Wide_String) data.
> Personally I think that letting us get a Stream for a GNAT.Sockets
> datagram socket is almost bound to result in error and shouldn't be
> allowed, I couldn't persuade AdaCore of that!
Yes, I agree. I've already gotten rid of the Stream stuff and I'm using
Send_Socket and Receive_Socket directly. I'll use the streams for the
TCP/IP connections, though.
Thanks,
Juanma
prev parent reply other threads:[~2006-07-19 20:54 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-18 9:41 Question about Streams and UDP sockets using GNAT.Sockets lekktu
2006-07-18 9:55 ` Dmitry A. Kazakov
2006-07-18 10:25 ` Alex R. Mosteo
2006-07-18 11:02 ` lekktu
2006-07-18 14:25 ` Alex R. Mosteo
2006-07-18 14:58 ` lekktu
2006-07-18 20:52 ` Samuel Tardieu
2006-07-18 20:58 ` Randy Brukardt
2006-07-19 10:36 ` Alex R. Mosteo
2006-07-19 18:50 ` Simon Wright
2006-07-18 19:07 ` Jeffrey R. Carter
2006-07-18 20:13 ` Dmitry A. Kazakov
2006-07-19 0:32 ` Jeffrey R. Carter
2006-07-19 8:12 ` Dmitry A. Kazakov
2006-07-19 18:59 ` Simon Wright
2006-07-19 20:54 ` lekktu [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox