lOne solution is for
the client to shut down only it’s
writing end of the socket.
l
lThe shutdownOutput()
socket call provides this function.
l
mySocket.shutdownOutput();
–shutdownOutput()
flushes output stream and sends
TCP-connection termination sequence.
–shutdownInput() closes input stream and discards any further information (further read()s will get -1)