recvfrom

  • 网络接收数据
recvfromrecvfrom
  1. There are four system calls that can be used to receive data from a connection : read , readv , recvfrom , and recvmsg .

    有四个系统调用可以用于从连接接收数据:read、readv、recvfrom和recvmsg。

  2. While recv ( a library function used by the process ), recvfrom , and recvmsg operate only on socket descriptor , read and readv can operate on any kind of descriptor .

    尽管recv(进程使用的库函数)、recvfrom和recvmsg仅可以对套接字描述符操作,但read和readv可以对任何种类的描述符操作。