摘要:
今天没有系统学习什么新知识,就是把以前学到的知识复习了一下,其中有几点值得注意 connect(fd, (struct sockaddr *)addr, sizeof(struct sockaddr_in)); 当fd处于非阻塞时, 如果connect没有成功连接,将返回-1,errno将指定于EI 阅读全文
摘要:
我们用man connection命令查看手册,如下: EINPROGRESS The socket is nonblocking and the connection cannot be completed immediately. It is possible to select(2) or p 阅读全文