Re: Sockets, writing data and shutdownOutput



> > close() on the stream???? The server is only going to see EOF if you
close()
> > the OutputStream in the client....
>
> Not true. shutdownOutput() on the client side signals
> EOF to the server. However, a close() on the
> OutputStream shuts down the whole socket,

Well, maybe you're using a different version of Java than the version (1.3)
I used to build a system which totally relied on closing output streams to
send EOFs to the recipient. Under 1.3 this worked 100% of the time... what
version are you using?


.



Relevant Pages

  • Re: Socket Problem: Client connects to a server that does not exit!
    ... The server's aim is to allow clients downloading an image. ... When the server is not running, the clients, strangely enough, still manage to connect to server PLUS create an empty image file. ... OutputStream outputStream = new FileOutputStream(path + ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: Socket Problem: Client connects to a server that does not exit!
    ... The server's aim is to allow clients downloading an image. ... When the server is not running, the clients, strangely enough, still manage to connect to server PLUS create an empty image file. ... OutputStream outputStream = new FileOutputStream(path + ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: File vom Server lesen
    ... Server den Request nicht verarbeiten koennen. ... was fuer ein OutputStream vom Socket zurueck- ...
    (de.comp.lang.java)
  • Re: Socket Problem: Client connects to a server that does not exit!
    ... The server's aim is to allow clients downloading an image. ... connect to server PLUS create an empty image file (i.e. it does not ... OutputStream outputStream = new FileOutputStream(path + ... monitor that intercepts connections and monitors for the purpose of ...
    (comp.lang.java.programmer)
  • Re: Socket Problem: Client connects to a server that does not exit!
    ... The server's aim is to allow clients downloading an image. ... When the server is not running, the clients, strangely enough, still manage to connect to server PLUS create an empty image file. ... OutputStream outputStream = new FileOutputStream(path + ... Don't presume that inputStream.read will fill the whole buffer. ...
    (comp.lang.java.programmer)