A threaded tcp client/server stack