posted 7 years ago
I have a client, and a server.
i run the server and the output is,
Creating Server Socket 5095 . . .
SUCCESS!!!
in while loop
Waiting for connection.
then i run the client and the output is,
Creating Client Socket
SUCCESS!!!
initializing variables
variables flushed
initializing input
java.io.EOFException
at java.io.DataInputStream.readFully(Unknown Source)
at java.io.DataInputStream.readLong(Unknown Source)
at java.io.DataInputStream.readDouble(Unknown Source)
at Client.runClient(Client.java:38)
at Client.main(Client.java:51)
I would like to initialize some doubles in the client, and send them to the server, where they will be parsed and manipulated, with the result then being sent back to the client.
I believe the client crashes when I try to write the double to the OutputStream.
What Am I doing wrong?