12
int accept(int socket, struct sockaddr *restrict address, socklen_t *restrict address_len);
address_len为传入传出参数!
address_len
当监听套接字设置为非阻塞时,若accept未获取到连接,则不阻塞,返回失败,errno设置为EAGAIN或EWOULDBLOCK
accept
errno
EAGAIN
EWOULDBLOCK
EMFILE