c# Full Duplex Asynchronous Named Pipes .NET

前端 未结 3 724
不知归路
不知归路 2020-12-08 03:14

I am trying to achieve a full-duplex client-server communication scheme, on 2 different machines (only), where each end-point (client or server) can send stuff at any time,

3条回答
  •  执笔经年
    2020-12-08 03:52

    I think When you async-communication, you have to use two pipe.

    One is recv pipe another is send pipe

    Because, You don't know when you recv data.

    When you send some data with one pipe, recv data can not write on pipe.

    In contrast, you can not write send data on pipe.

    therefore you have to two pipe for async communication.

提交回复
热议问题