promising tcp socket create and read