Switch from write-line and read-line to write and read for transport across the tcp connection