No.
Type: Posts; User: Norm
What happens with multiple clients?
This size of code requires execution to see if it works. Too big to just use the eyeball.
I don't see how the posted code works without using an accept().
Here's a idea of how it could work:
server defines serversocket
begin loop
server calls accept() and waits for connect
client...
Where is the accept() method to wait for incoming connections?
I think that is possible.
I'm not sure what a WAR file is for. Do server hosting sites require that?
Your testing server code sounds like it needs a redesign. The accept logic should start a...
That sounds like a description of a protocol like http. With your own server you can define your own protocol.