Built framework for socket in/out threads with cross-thread communication via BlockingQueue.