Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val register_ssl :
(?bind:string -> host:string -> Unix.sockaddr -> transport) ->
unit
exception Error of error
val string_of_protocol : protocol -> string
val ogg_application : content_type
val ogg_audio : content_type
val ogg_video : content_type
val mpeg : content_type
val content_type_of_string : string -> content_type
val string_of_content_type : content_type -> string
type connection = {
mount : mount;
user : string;
password : string;
host : string;
port : int;
chunked : bool;
content_type : content_type;
protocol : protocol;
headers : (string, string) Hashtbl.t;
}
val string_of_connection : connection -> string
type audio_info = (string, string) Hashtbl.t
type metadata = (string, string) Hashtbl.t
val create :
?ipv6:bool ->
?bind:string ->
?connection_timeout:float ->
?timeout:float ->
unit ->
t
val get_icy_cap : t -> bool
val get_connection_data : t -> connection_data
val audio_info :
?samplerate:int ->
?channels:int ->
?quality:float ->
?bitrate:int ->
unit ->
audio_info
val connection :
?user_agent:string ->
?name:string ->
?genre:string ->
?url:string ->
?public:bool ->
?audio_info:audio_info ->
?description:string ->
?host:string ->
?port:int ->
?chunked:bool ->
?password:string ->
?protocol:protocol ->
?user:string ->
mount:mount ->
content_type:content_type ->
unit ->
connection
val connect : t -> connection -> unit
val send : t -> string -> unit
val close : t -> unit