Alright I figured out my problem after I sent the int I had to flush my output stream buffere with flush().
One question is there a way to put code in some sort of code box here? I checked under help but didn't find such a command.
I am just starting to learn client server programming in java. I sent some text between a client and server that was easy. I then tried to send some objects and other data and I couldn't get it to work. If I make a loop for the client to send an int to the server. I have figured out through testing that it needs to try and send it at least 257 times before the server will ever recieve it anything below that and the server gets nothing. This makes absolutely no sense.
Actually it makes a lot of sense,. I suspect Nagle is getting you.
Try Socket.setTcpNoDelay(true);
And remember, the computer is (almost) always right.. When you see somthing that makes no sense, it means one of your assumptions is wrong.