Well....what if the Server sends something, then in the next line of code sends another message.
Then the client receives the first message....has to do stuff with it...then, when it's done, the...
Type: Posts; User: ineedahero
Well....what if the Server sends something, then in the next line of code sends another message.
Then the client receives the first message....has to do stuff with it...then, when it's done, the...
I see what you're saying.
Here, though, the Server is kind of sending two messages in a row.
I suppose that's bad practice?
I'm sorry...I don't understand what you mean.
All I have is the client saying "System.out.println(b.readLine());"
So, he's waiting for the Server.
But that's useless if the Server sends the...
Yes, but the code is kind of complicated. I'll try to give a brief version here.
The Client is playing a game. He connects to the server, and the server executes the game and gives the client...
...how exactly do you ensure that the Server always sends the data after the Client has entered a wait state for the data?
As in, if I have the Server write something and the Client read something...