comp.lang.ada
 help / color / mirror / Atom feed
From: Mark Lorenzen <mark.lorenzen@gmail.com>
Subject: Re: Sockets Example Sought
Date: Tue, 27 Nov 2012 07:05:34 -0800 (PST)
Date: 2012-11-27T07:05:34-08:00	[thread overview]
Message-ID: <18ccf59a-2956-48e3-9824-8f51571da71f@googlegroups.com> (raw)
In-Reply-To: <2012112621374336634-rblove@airmailnet>

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



  parent reply	other threads:[~2012-11-27 15:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-23 17:17 Sockets Example Sought Robert Love
2012-11-23 18:32 ` Simon Wright
2012-11-23 21:58   ` Robert Love
2012-11-23 22:40     ` Dmitry A. Kazakov
2012-11-24 18:27       ` Robert Love
2012-11-24 21:01         ` Dmitry A. Kazakov
2012-11-27  3:37           ` Robert Love
2012-11-27  8:41             ` Dmitry A. Kazakov
2012-11-27 15:05             ` Mark Lorenzen [this message]
2012-11-23 23:08     ` Simon Wright
2012-11-28  4:43 ` anon
2012-11-30  5:04   ` Robert Love
replies disabled

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