69,382
社区成员
发帖
与我相关
我的任务
分享
int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen);
//The argument addr is a pointer to a sockaddr structure.
//This structure is filled in with the address of the peer socket,
//as known to the communications layer. The exact format of the
//address returned addr is determined by the socket's address family (see socket(2) //and the respective protocol man pages).
理解理解这个