First iteration of the connection listener - reading the first line for command, the second line for data block