comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Spooner <rls19@psu.edu>
Subject: Re: thanks
Date: Fri, 09 Jan 2004 08:58:15 -0500
Date: 2004-01-09T08:58:15-05:00	[thread overview]
Message-ID: <btmc1n$9g0$1@f04n12.cac.psu.edu> (raw)
In-Reply-To: <btlvkh$bak$1@e3k.asi.ansaldo.it>

Riccardo,

If you want to use TCP/IP but make it look like a (reliable) UDP/IP 
protocol at a higher level, one way to do it is to layer a record 
structure on top of TCP that sends size in bytes as a fixed length 
preamble of every message. You read the size, and then loop until you 
have read the correct number of bytes for the entire message.

Another way to do it is by using streams.

Regards,
Bob

Riccardo wrote:
> Thanks to everybody!
> I'll consider all these considerations in arranging a new solution.
> 
> Riccardo
> 
> 
> 
> 

-- 
                             Robert L. Spooner
                      Registered Professional Engineer
                        Associate Research Engineer
                   Intelligent Control Systems Department

          Applied Research Laboratory        Phone: (814) 863-4120
          The Pennsylvania State University  FAX:   (814) 863-7841
          P. O. Box 30
          State College, PA 16804-0030       rls19@psu.edu




  reply	other threads:[~2004-01-09 13:58 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07  8:39 ADA vs JAVA sockets Riccardo
2004-01-07 13:31 ` Duncan Sands
2004-01-07 16:28   ` Jano
2004-01-07 19:44   ` Pascal Obry
2004-01-07 21:11     ` Duncan Sands
2004-01-08 14:31       ` Gnat 3.15p bugs (was: ADA vs JAVA sockets) Jano
2004-01-08 16:24         ` Duncan Sands
2004-01-08 19:14           ` Jano
2004-01-08 20:16           ` tmoran
2004-01-08 20:58             ` Duncan Sands
2004-01-07 14:24 ` ADA vs JAVA sockets Stephen Leake
2004-01-07 15:43 ` Steve
2004-01-07 22:23 ` Frode Tennebø
2004-01-08  7:09   ` David Marceau
2004-01-08  8:32 ` More details on:--- ADA vs JAVA sockets--- Riccardo
2004-01-08 20:16   ` tmoran
2004-01-09  7:27     ` Riccardo
2004-01-09  8:45       ` Ole-Hjalmar Kristensen
2004-01-09 10:27         ` thanks Riccardo
2004-01-09 13:58           ` Robert Spooner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-09-19 16:51 Thanks Gwynnnn
2004-09-19 17:30 ` Thanks stephane richard
2004-09-19 18:00 ` Thanks Jeffrey Carter
2002-03-31 13:10 Ada and Assembler Henrik Quintel
2002-04-01 15:13 ` Thanks Henrik Quintel
1987-06-05  9:29 Thanks A-PIRARD
replies disabled

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