Running: java -client -cp . TCPMultiThreadServerTest
Opening port...
New client accepted.
Enter message: Message sent! please wait for server messageMessage received from client number 1: hi there
Enter Message:
FROM SERVER: msg1 and text
Enter message: Message sent! please wait for server messageYour message: msg1 and text
Message received from client number 1: 2
Enter Message:
FROM SERVER: 2
Enter message: Message sent! please wait for server messageYour message: 2
Message received from client number 1: 3
Enter Message:
FROM SERVER: 3
Enter message: Message sent! please wait for server messageYour message: 3
Message received from client number 1: 4
Enter Message:
FROM SERVER: 4
Enter message: Message sent! please wait for server messageYour message: 4
Message received from client number 1: 5
Enter Message:
FROM SERVER: 5
Enter message: Message sent! please wait for server messageYour message: 5
Message received from client number 1: 6
Enter Message:
FROM SERVER: 6
Enter message: Message sent! please wait for server messageYour message: 6
Message received from client number 1: 7
Enter Message:
FROM SERVER: 7
Enter message: Message sent! please wait for server messageYour message: 7
Message received from client number 1: E
Enter Message:
FROM SERVER: 8
Enter message: Message sent! please wait for server messageYour message: 8
Message received from client number 1: 2
Enter Message:
FROM SERVER: 9
Enter message: Message sent! please wait for server messageYour message: 9
Message received from client number 1: 3
Enter Message:
FROM SERVER: E
Enter message: Message sent! please wait for server messageYour message: E
java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at TCPMultiThreadServerTest$TCPClient1.main(TCPMultiT hreadServerTest.java:197)
at TCPMultiThreadServerTest$2.run(TCPMultiThreadServe rTest.java:22)
at java.lang.Thread.run(Unknown Source)
Exiting main
0 error(s)