Use threads for TCP listening sockets.