Rob Brew wrote:
Should i set up initNetworking as a thread?
AS a thread? No. But
IN its own thread, yes.
If you do
Obviously, you'll never get to the "other stuff" part. It doesn't matter if the "stuff" part is socket calls or something else.
Also, you're closing the ServerSocket at every pass through the while loop. This means that only your first accept() will work, and all subsequent ones will fail.
Always close in a finally block.