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-08 11:43:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!enst.fr!beeblebrox!nobody From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: [OT] Two sockets questions Date: Thu, 08 May 2003 20:42:55 +0200 Organization: Avian Carrier & Friends Message-ID: <87smrpe0uo.fsf@inf.enst.fr> References: <8765omaa6b.fsf@inf.enst.fr> NNTP-Posting-Host: willow.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: avanie.enst.fr 1052419384 89427 137.194.161.3 (8 May 2003 18:43:04 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 8 May 2003 18:43:04 +0000 (UTC) Mail-Copies-To: sam@rfc1149.net User-Agent: Gnus/5.090007 (Oort Gnus v0.07) XEmacs/21.4 (Military Intelligence, i386--freebsd) Cancel-Lock: sha1:v6uh/8GVk7IL7lHuKnckoSsqr38= Xref: archiver1.google.com comp.lang.ada:37076 Date: 2003-05-08T20:42:55+02:00 List-Id: >>>>> "Stephen" == Stephen Leake writes: Stephen> Jano writes: >> Stephen Leake dice... >> >> > > 1) Create your socket >> > > 2) Make it non-blocking >> >> > I suspect Jano is wondering how to accomplish step 2; exactly >> > what function (C or Ada) should be called, with what parameters? >> >> That's no problem. I have used it before in the Gnat binding. Stephen> Um, what, exactly, is "it"? That is the real question here! Jano means that he knows perfectly well how to perform steps 1 and 2 (create a non-blocking socket). Your suspicion was wrong :) The problem does not lie in creating a non-blocking socket, but only in using connect() in a non-blocking way. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam