Use DataReader/Writer to read and write data on socket stream