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: running TCL/tk apps off the web
    ... my experience of web programming is slight. ... this application over the web depend on the client having TCL/tk? ... Multiple connections to clients are possible. ... I have never tested if this works with the tcl browser plugin, ...
    (comp.lang.tcl)
  • 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: 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)