How does NetworkStream work in two directions?

后端 未结 3 1769
猫巷女王i
猫巷女王i 2021-01-20 13:39

I\'ve read an example of a Tcp Echo Server and some things are unclear to me.

TcpClient client = null;
NetworkStream netStream = null;

try {
  client = list         


        
3条回答
  •  终归单人心
    2021-01-20 14:30

    A TCP connection is, in principal, full duplex. So you are dealing with 2 separate channels and yes, both sides could be writing at the same time.

提交回复
热议问题