Threaded client and server.