X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Focaml-http%2Fhttp_misc.mli;h=6e5fdfcf6425daf10beedcbc60b0269fe4184077;hb=9d2fb169bfc461d247338137458cbecc924d9208;hp=3aea8b52d2655cec92e034a5251fbf2bfee8fbf5;hpb=9d746b8bd108a349f3d4771adbc3b293f191e282;p=helm.git diff --git a/helm/DEVEL/ocaml-http/http_misc.mli b/helm/DEVEL/ocaml-http/http_misc.mli index 3aea8b52d..6e5fdfcf6 100644 --- a/helm/DEVEL/ocaml-http/http_misc.mli +++ b/helm/DEVEL/ocaml-http/http_misc.mli @@ -42,10 +42,24 @@ val strip_heading_slash: string -> string (** given a dir handle @return a list of entries contained *) val ls: Unix.dir_handle -> string list + (** explode a string in a char list *) val string_explode: string -> char list + (** implode a char list in a string *) val string_implode: char list -> string + (** given an HTTP response code return the corresponding reason phrase *) val reason_phrase_of_code: int -> string -val build_sockaddr: addr:string -> port:int -> Unix.sockaddr + (** build a Unix.sockaddr inet address from a string representation of an IP + address and a port number *) +val build_sockaddr: string * int -> Unix.sockaddr + (** explode an _inet_ Unix.sockaddr address in a string representation of an + IP address and a port number *) +val explode_sockaddr: Unix.sockaddr -> string * int + + (** given an out_channel build on top of a socket, return peername related to + that socket *) +val peername_of_out_channel: out_channel -> Unix.sockaddr + (** as above but works on in_channels *) +val peername_of_in_channel: in_channel -> Unix.sockaddr