Performance impact of using write() instead of send() when writing to a socket

前端 未结 3 1511
忘掉有多难
忘掉有多难 2021-01-11 11:52

I am working on writing a network application in C++ on the Linux platform using the typical sockets API, and I am looking at 2 alternative ways of writing a byte array to a

3条回答
  •  不思量自难忘°
    2021-01-11 12:41

    recv and send allow you to specify flags, such as for out-of-band packets. If you don't need to specify the flags, read and write are perfectly adequate.

提交回复
热议问题