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,c22949b5ebf3505f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-11 01:34:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!news.telebyte.nl!proxad.net!proxad.net!noos.fr!not-for-mail From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: [OT] Two sockets questions References: <5d6fdb61.0305100606.1a36d426@posting.google.com> Mail-Copies-To: sam@rfc1149.net Date: Sat, 10 May 2003 23:27:16 +0200 Message-ID: <874r428pcb.fsf@inf.enst.fr> Organization: Avian Carrier & Friends User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Military Intelligence, i386--freebsd) Cancel-Lock: sha1:Moh0kPBMmP3ULyswh3PhjvFFA1I= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Date: 11 May 2003 08:34:16 GMT NNTP-Posting-Host: 81.65.250.34 X-Trace: 1052642056 news.noos.fr 28533 81.65.250.34 X-Complaints-To: abuse@noos.fr Xref: archiver1.google.com comp.lang.ada:37174 Date: 2003-05-11T08:34:16+00:00 List-Id: >>>>> "Tom" == Tom Moran writes: Tom> It's intended for blocking sockets, so it sits around and polls Tom> till the select says its writable, or some other error is Tom> returned. It actually opens as non-blocking so it can get Tom> control back from the OS to do this polling, and timeout Tom> checking, etc. Why not make the socket blocking in this case (around connect()) since your code sits and waits for select() to return? Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam