Hmm.. when a winsock is listening, is there an event that would be fired
when the remote host dropped connection? It seems that I need to poll
winsock.state to detect a disconnection.

There is a connectrequest() event (which is to be handled by the
accept() method), but not one for hangup.

--
.~. Might, Courage, Vision. In Linux We Trust.
/ v \ http://www.linux-sxs.org
/( _ )\ Linux 2.4.22-xfs
^ ^ 2:10pm up 1 day 19:16 load average: 1.00 1.00 0.97

Re: winsock.disconnected? by Jeroen

Jeroen
Sat Mar 06 16:28:22 CST 2004

On Sat, 06 Mar 2004 14:15:05 +0800, toylet
<toylet_at_mail.hongkong.com> wrote:

See the close event
>Hmm.. when a winsock is listening, is there an event that would be fired
>when the remote host dropped connection? It seems that I need to poll
>winsock.state to detect a disconnection.
>
>There is a connectrequest() event (which is to be handled by the
>accept() method), but not one for hangup.


Re: winsock.disconnected? by toylet

toylet
Sun Mar 07 00:49:34 CST 2004

Thank you. It was the winsock.close() event. And there is also a
winsock.close() method. Rather consuing.

> See the close event
>>Hmm.. when a winsock is listening, is there an event that would be fired
>>when the remote host dropped connection? It seems that I need to poll

--
.~. Might, Courage, Vision. In Linux We Trust.
/ v \ http://www.linux-sxs.org
/( _ )\ Linux 2.4.22-xfs
^ ^ 2:48pm up 22:58 1 user 0.97 0.94