Module XmlRPCServer


module XmlRPCServer: sig  end
XML-RPC Server routines


These functions provide ways to parse and execute XML-RPC requests. Receiving the requests is handled in other modules, to provide a variety of ways to get them (standalone daemon, CGI, mod_ocaml, etc. At the moment, only the first two are supported.

Generally, you won't need to call these functions yourself. They're used in the source generated from idl files.



Types


type t 
The type that describes a request handler
class type source = object  end
The type of request sources.
exception Error of (string * int)
val make : source -> t
Create a handler


Registering request handlers.


val register_callback : t -> string -> (XmlRPCTypes.t array -> XmlRPCTypes.t) -> unit
Registers a callback function for a method with a handler.
val remove_callback : t -> string -> unit
Unregisters a recognized method.
val is_handled : t -> string -> bool
Is a method handled or not?
val list_functions : t -> string list
Returns a list of all handled function requests


Handling requests


val server : string
val run : t -> unit
Starts an infinite loop waiting for requests and dealing with them.