fb_curl_multi_fdset

extracts file descriptor information from a multi handle

function fb_curl_multi_fdset(
  resource $mh,
  inout array& $read_fd_set,
  inout array& $write_fd_set,
  inout array& $exc_fd_set,
  inout int& $max_fd,
): mixed;

Parameters

  • resource $mh - A cURL multi handle returned by curl_multi_init().
  • inout array& $read_fd_set - read set
  • inout array& $write_fd_set - write set
  • inout array& $exc_fd_set - exception set
  • inout int& $max_fd - If no file descriptors are set, $max_fd will contain -1. Otherwise it will contain the higher descriptor number.

Returns

  • mixed - - Returns 0 on success, or one of the CURLM_XXX errors code.