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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e8c6974546bc3f7f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.73.134 with SMTP id l6mr1015458pav.0.1354028734656; Tue, 27 Nov 2012 07:05:34 -0800 (PST) Received: by 10.50.222.132 with SMTP id qm4mr5895387igc.5.1354028734476; Tue, 27 Nov 2012 07:05:34 -0800 (PST) Path: s9ni13304pbb.0!nntp.google.com!kr7no13045901pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 27 Nov 2012 07:05:34 -0800 (PST) In-Reply-To: <2012112621374336634-rblove@airmailnet> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.163.1.105; posting-account=Srm5lQoAAAAEMX9rv2ilEKR6FDPapmSq NNTP-Posting-Host: 193.163.1.105 References: <2012112311175432190-rblove@airmailnet> <2012112315585358568-rblove@airmailnet> <17vopoh3g5mg4.jv11ioybge4k$.dlg@40tude.net> <2012112412270484092-rblove@airmailnet> <17btkxe7c0dse.1dndrk5qjz65x.dlg@40tude.net> <2012112621374336634-rblove@airmailnet> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <18ccf59a-2956-48e3-9824-8f51571da71f@googlegroups.com> Subject: Re: Sockets Example Sought From: Mark Lorenzen Injection-Date: Tue, 27 Nov 2012 15:05:34 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-11-27T07:05:34-08:00 List-Id: Den tirsdag den 27. november 2012 04.36.43 UTC+1 skrev Robert Love: > > BTW, is there an official way to tell when the client closes the > > socket? When I'm reading data, I can tell. If I'm not reading data, > I think that if you are using a select(2) call AND the select(2) call tells you that there IS data ready for reading, BUT when you try and read some data then there is none, then the connection is closed (aborted). There is no such thing as proper shutdown using TCP/IP - only a brutal abort. Regards, - Mark L