Plasma GitLab Archive
Projects Blog Knowledge

Class type Http_client_conncache.connection_cache

class type connection_cache = object .. end

method get_connection_state : Unix.file_descr -> conn_state
Returns the state of the file descriptor
method set_connection_state : Unix.file_descr -> conn_state -> unit
Sets the state of the file descriptor. It is allowed that inactive descriptors are simply closed and forgotten.
method find_inactive_connection : Unix.sockaddr -> Unix.file_descr
Returns an inactive connection to the passed peer, or raise Not_found.
method find_my_connections : <  > -> Unix.file_descr list
Returns all active connections owned by the object
method close_connection : Unix.file_descr -> unit
Deletes the connection from the cache, and closes it
method close_all : unit -> unit
Closes all descriptors known to the cache
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml