每次都遇到类似 java.net.SocketException 的错误
in java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.FilterInputStream.read(Unknown Source)
at Server.TcpServer.main(TcpServer.java:37)
my code at the following line....
phonenumber = Long.parseLong(query, inFromTcpClient.read());
thanks in advance...