Transform stream factory to format data for TCP transmission.