#include <sys/types.h>
#include <sys/socket.h>
ssize_t recv(int sockfd, void *buf, size_t len, int flags);
1.具有紧急指针功能
2.具有带外数据
3.数据包提前预读
ssize_t recvfrom(int sockfd, void *buf, size_t len, int flags,
struct sockaddr *src_addr, socklen_t *addrlen);
ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags);
标签:函数,int,flags,预读,sockfd,recv,ssize From: https://www.cnblogs.com/miwaiwai/p/17349096.html