I want an event when program I'm connected with closes Socket

opalpa_at_gmail.com
Date: 01/12/05


Date: 12 Jan 2005 14:09:06 -0800


I've written socket code previously and am confronted with a new
situation: I have a server which manages multiple connections and each
connections can be reused for multiple messages. The client does not
say anything before closing, it just closes. What is the correct way
to determine that client closed socket?

I've looked at java.net.socket 1.5 documentation and it is much too
imprecise for my understanding. Like does isClosed() mean that close()
was called on instance? Does it mean that specific symbols were
received by instance from client?

It seems that more commonly protocols have explicit messages informing
of closing, however in my circumstances changing protocols is not an
option.

Looking forward to replies.



Relevant Pages

  • Re: Computer Name Change
    ... Shenan. ... any idea why the multiple connections message ... >> Windows XP Pro SP2 client. ... >@ECHO The syntax for this script is: ...
    (microsoft.public.windowsxp.general)
  • Re: I want an event when program Im connected with closes Socket
    ... I have a server which manages multiple connections and each ... > connections can be reused for multiple messages. ... The client does not ...
    (comp.lang.java.programmer)
  • Re: P2P Application
    ... I need an application which must act as client and server at the same time. ... Server must accept multiple connections and client can start at any time. ...
    (comp.lang.c)
  • Re: Help, Multiple connections using clisp sockets
    ... > Muds require to accept multiple connections into one port. ... (defun client-quit (client) ... (format client "There is ~A client connected to the server~%" ...
    (comp.lang.lisp)