comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: socket, pipe
Date: Wed, 05 Nov 2003 05:24:50 GMT
Date: 2003-11-05T05:24:50+00:00	[thread overview]
Message-ID: <CQ%pb.110149$Fm2.97469@attbi_s04> (raw)
In-Reply-To: q6_pb.79350$275.225642@attbi_s53

>documentation for Unix describes, but you'll need to add a call to
>"WSAStartup" before you try any of the other calls or nothing will work.
>When your application shuts down there is a similar call (I think its
>WSAShutdown).
  If you're using Windows you could use Claw-style sockets (either the
version that comes with the $0 Claw, or the version that doesn't need Claw
at all).  It uses a hidden controlled type to automagically do WSAStartup
and WSACleanup.

>One gotcha's that caught me is the operation of "send" and "recv".  Since
>we're using sockets in "blocking" mode I expected the "recv" function to
>wait until all of the characters I asked for showed up.  That is NOT the way
  Claw lets you read/write with Strings, or Ada.Streams style, or by
instantiating a generic with a record (like Sequential_IO), or mixtures.



  reply	other threads:[~2003-11-05  5:24 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-04 14:45 socket, pipe ghostie
2003-11-04 15:14 ` Ole-Hjalmar Kristensen
2003-11-04 15:33 ` Marius Amado Alves
2003-11-04 17:45   ` Warren W. Gay VE3WWG
2003-11-04 18:48 ` John Woodruff
2003-11-05  3:27 ` Steve
2003-11-05  5:24   ` tmoran [this message]
2003-11-05  9:44 ` Pascal Obry
2003-11-05 12:31 ` Marin David Condic
2003-11-05 14:50   ` Steve
2003-11-05 15:19   ` Steve
2003-11-05 13:45 ` ghostie
2003-11-05 18:54   ` ghostie
2003-11-05 20:41     ` Robert Spooner
2003-11-05 20:18   ` Martin Dowie
2003-11-05 20:23     ` Martin Dowie
2003-11-05 13:54 ` ghostie
2003-11-05 14:26   ` Marius Amado Alves
2003-11-05 23:55   ` Jacob Sparre Andersen
  -- strict thread matches above, loose matches on Subject: below --
2003-11-05 18:49 Beard, Frank Randolph CIV
2003-11-05 19:43 Beard, Frank Randolph CIV
2003-11-05 21:14 ` tmoran
replies disabled

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