recv in listenTerminal