我正在阅读有关在 C# 中维护 TCP 服务器的教程,并遇到了这个问题:
Console.Write("> ");
sData = Console.ReadLine();
// write data and make sure to flush, or the buffer will continue to
// grow, and your data might not be sent when you want it, and will
// only be sent once the buffer is filled.
_sWriter.WriteLine(sData);
_sWriter.Flush();
我的问题是,从技术方面来说,“刷新”操作究竟做了什么?“冲洗”的整个概念是什么?