Added a little more code, including a threading mechanism for incoming connections, and outgoing message queues for each connection.