My problem is the following: I have written a simple TCP chat server using IO:Socket but once I get the server to listen, it will not go on to execute the rest of the program (because it waits for a connection). Is there any way to start the one sub routine of the server listening in the background?