Difference between UNIX domain STREAM and DATAGRAM sockets?

前端 未结 4 408
一生所求
一生所求 2021-01-30 00:55

This question is NOT for the difference between STREAM type and DATAGRAM type INTERNET sockets. I know that STREAM sockets use TCP, Datagram sockets use UDP and all the T

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-30 01:11

    If the clients and servers will always be on the same machine and the goal is to have minimal latency and maximum bandwidth, use shared memory.

提交回复
热议问题