On Fri, Apr 25, 2008 at 10:00 AM,  <[EMAIL PROTECTED]> wrote:
> Hi. I use nsIServerSocket. In listener (onSocketAccepted) it is
>  possible to determine that new client had connected. How to catch the
>  event when client closed connection?

When the client closes the connection, the input stream will return
EOF (i.e. reading from the stream will return 0 bytes). Or if you use
an nsIInputStreamPump with the stream, you'll get onStopRequest
called.

-christian
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to