Hi, the socket is closed because in the finally block(in main method) you are closing the socket. When you start the Read and Write, the main method follow his execution and close the socket in the finally block. The program is alive because the Write
thread isn't dead.
[ June 09, 2007: Message edited by: Miguel Ivan Gutierrez ]