Java - How to keep a live socket connection
<p>Ok guys im not that experienced so take it easy on me.</p>

<p>Ok so i have 2 programs, one for the server (my pc) and one for the client(other pcs)
and this is the setup</p>

<p>server listens/accepts > client connects > server sends command to client > client executes.</p>

<p>and thats it, after that it disconnects BUT i need the client to stay connected so the server can keep sending commands as needed.</p>

<p>How can i achieve this?</p>

<p>I can provide more info if need just ask!
thanks for all the help guys.</p>
