Med*_*ine 2 c sockets network-programming tcp polling
int rc = poll(fds, 1, -1); 假设远程对等点出现故障。套接字在这里中断。在这种情况下,poll 系统调用将返回 -1 或将返回 > 0 并将断开连接报告为 FD 上的错误事件。
另外,轮询在 0 超时时会返回什么。int rc = poll(fds, nfds, 0);
| 归档时间: |
|
| 查看次数: |
9238 次 |
| 最近记录: |