⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 curl_multi_fdset.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
字号:
.\" $Id: curl_multi_fdset.3,v 1.12 2006/01/02 23:32:36 bagder Exp $.\".TH curl_multi_fdset 3 "2 Jan 2006" "libcurl 7.16.0" "libcurl Manual".SH NAMEcurl_multi_fdset - extracts file descriptor information from a multi handle.SH SYNOPSIS.nf#include <curl/curl.h>CURLMcode curl_multi_fdset(CURLM *multi_handle,                           fd_set *read_fd_set,                           fd_set *write_fd_set,                           fd_set *exc_fd_set,                           int *max_fd);.ad.SH DESCRIPTIONThis function extracts file descriptor information from a given multi_handle.libcurl returns its fd_set sets. The application can use these to select() on,but be sure to FD_ZERO them before calling this function as\fIcurl_multi_fdset(3)\fP only adds its own descriptors it doesn't zero orotherwise remove any other. The \fIcurl_multi_perform(3)\fP function should becalled as soon as one of them are ready to be read from or written to.If no file descriptors are set by libcurl, \fImax_fd\fP will contain -1 whenthis function returns. Otherwise it will contain the higher descriptor numberlibcurl set.You should also be aware that when doing select(), you should consider using arather small (single-digit number of seconds) timeout and call\fIcurl_multi_perform\fP regularly - even if no activity has been seen on thefd_sets - as otherwise libcurl-internal retries and timeouts may not work asyou'd think and want.Starting with libcurl 7.16.0, you should use \fBcurl_multi_timeout\fP tofigure out how long to wait for action..SH RETURN VALUECURLMcode type, general libcurl multi interface error code. See\fIlibcurl-errors(3)\fP.SH "SEE ALSO".BR curl_multi_cleanup "(3)," curl_multi_init "(3), ".BR curl_multi_timeout "(3) "

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -