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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7df2baf73b28aa5d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-04 21:24:51 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!attbi_s04.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: socket, pipe References: X-Newsreader: Tom's custom newsreader Message-ID: NNTP-Posting-Host: 12.234.124.41 X-Complaints-To: abuse@comcast.net X-Trace: attbi_s04 1068009890 12.234.124.41 (Wed, 05 Nov 2003 05:24:50 GMT) NNTP-Posting-Date: Wed, 05 Nov 2003 05:24:50 GMT Organization: Comcast Online Date: Wed, 05 Nov 2003 05:24:50 GMT Xref: archiver1.google.com comp.lang.ada:2065 Date: 2003-11-05T05:24:50+00:00 List-Id: >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.