#include <sys/socket.h>

ssize_t recv(int sockfd, void *buff, size_t nbytes, int flags);

ssize_t send(int sockfd, const void *buff, size_t nbytes, int flags);

    返回:成功返回读入或写入的字节数,出错则为-1

flags参数的值或为0,或为下列值之一:

recv和send函数

相关文章:

  • 2021-06-20
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2021-05-29
  • 2021-11-11
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2021-11-15
  • 2021-07-16
  • 2021-05-20
相关资源
相似解决方案