package ocurl
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=99935feb1e7ff6456e33452888a3671ecb6535a303b006f24203bc54b79d2209
    
    
  md5=1622d7d1777192c387cdf72567dc5b2b
    
    
  doc/curl/Curl/Multi/index.html
Module Curl.Multi
Curl multi stack. Functions may raise Failure on critical errors
type curlMultiOption = - | CURLMOPT_PIPELINING of curlPipelining list
- | CURLMOPT_MAXCONNECTS of int
- | CURLMOPT_MAX_PIPELINE_LENGTH of int
- | CURLMOPT_MAX_HOST_CONNECTIONS of int
val create : unit -> mtcreate new multi stack
val perform : mt -> intperform pending data transfers (if any) on all handles currently in multi stack
val wait : mt -> boolwait till there are some active data transfers on multi stack
remove finished handle from the multi stack if any. The returned handle may be reused
val cleanup : mt -> unitdestroy multi handle (all transfers are stopped, but individual Curl.t handles can be reused)
val set_socket_function : mt -> (Unix.file_descr -> poll -> unit) -> unitset the function to receive notifications on what socket events are currently interesting for libcurl on the specified socket handle
val set_timer_function : mt -> (int -> unit) -> unitset the function to receive notification when libcurl internal timeout changes, timeout value is in milliseconds
NB action_timeout should be called when timeout occurs
val action_all : mt -> intperform pending data transfers (if any) on all handles currently in multi stack (not recommended, action should be used instead)
val action_timeout : mt -> unitinform libcurl that timeout occured
val action : mt -> Unix.file_descr -> fd_status -> intaction mt fd status informs libcurl about event on the specified socket. status specifies socket status. Perform pending data transfers.
val timeout : mt -> inttimeout mt polls multi handle for timeout (not recommended, use set_timer_function instead).
val setopt : mt -> curlMultiOption -> unit