Plasma GitLab Archive
Projects Blog Knowledge

Class type Http_client.transport_channel_type

class type transport_channel_type = object .. end

method setup_e : Unix.file_descr ->
channel_binding_id ->
float ->
exn ->
string ->
int ->
Unixqueue.event_system ->
(Uq_engines.multiplex_controller * Http_client_conncache.private_data)
Uq_engines.engine
setup fd cb tmo tmo_x host port esys: Create or configure a communication circuit over the file descriptor fd that can be driven by the returned multiplex controller object. Since OCamlnet-3.8, the method can also return private data for the connection cache.

tmo is the timeout. After inactivity the exception tmo_x must be raised.

host is the name of the machine to connect to. port is the port number. The descriptor fd is already connected to this port, directly or via a proxy.

method continue : Unix.file_descr ->
channel_binding_id ->
float ->
exn ->
string ->
int ->
Unixqueue.event_system ->
Http_client_conncache.private_data -> Uq_engines.multiplex_controller
continue is called when an already established circuit needs to be continued.

Note that the event system can be different now.

If it is not possible to continue, the method may raise Not_found.

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml