communicate between queue and tcp