<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <link rel="stylesheet" href="style.css" type="text/css"> <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type"> <link rel="Start" href="index.html"> <link rel="previous" href="Rpc.Implementation.html"> <link rel="next" href="Rpc.Connection.html"> <link rel="Up" href="Rpc.html"> <link title="Index of types" rel=Appendix href="index_types.html"> <link title="Index of exceptions" rel=Appendix href="index_exceptions.html"> <link title="Index of values" rel=Appendix href="index_values.html"> <link title="Index of modules" rel=Appendix href="index_modules.html"> <link title="Index of module types" rel=Appendix href="index_module_types.html"> <link title="Command" rel="Chapter" href="Command.html"> <link title="File_tail" rel="Chapter" href="File_tail.html"> <link title="File_writer" rel="Chapter" href="File_writer.html"> <link title="Import" rel="Chapter" href="Import.html"> <link title="Lock_file" rel="Chapter" href="Lock_file.html"> <link title="Log" rel="Chapter" href="Log.html"> <link title="Persistent_singleton" rel="Chapter" href="Persistent_singleton.html"> <link title="Rpc" rel="Chapter" href="Rpc.html"> <link title="Rpc_intf" rel="Chapter" href="Rpc_intf.html"> <link title="Std" rel="Chapter" href="Std.html"> <link title="Tcp" rel="Chapter" href="Tcp.html"> <link title="Tcp_file" rel="Chapter" href="Tcp_file.html"> <link title="Typed_tcp" rel="Chapter" href="Typed_tcp.html"> <link title="Typed_tcp_intf" rel="Chapter" href="Typed_tcp_intf.html"> <link title="Unpack_sequence" rel="Chapter" href="Unpack_sequence.html"> <link title="User_and_group" rel="Chapter" href="User_and_group.html"> <link title="Versioned_rpc" rel="Chapter" href="Versioned_rpc.html"> <link title="Versioned_typed_tcp" rel="Chapter" href="Versioned_typed_tcp.html"> <link title="Weak_hashtbl" rel="Chapter" href="Weak_hashtbl.html"><title>Rpc.Implementations</title> </head> <body> <div class="navbar"><a class="pre" href="Rpc.Implementation.html" title="Rpc.Implementation">Previous</a> <a class="up" href="Rpc.html" title="Rpc">Up</a> <a class="post" href="Rpc.Connection.html" title="Rpc.Connection">Next</a> </div> <h1>Module <a href="type_Rpc.Implementations.html">Rpc.Implementations</a></h1> <pre><span class="keyword">module</span> Implementations: <code class="code">sig</code> <a href="Rpc.Implementations.html">..</a> <code class="code">end</code></pre><hr width="100%"> <pre><span id="TYPEt"><span class="keyword">type</span> <code class="type">'connection_state</code> t</span> </pre> <div class="info "> A <code class="code">'connection_state Implementations.t</code> is something which knows how to respond to many different queries. It is conceptually a package of <code class="code">'connection_state Implementation.t</code>'s.<br> </div> <pre><span id="VALnull"><span class="keyword">val</span> null</span> : <code class="type">unit -> 'connection_state <a href="Rpc.Implementations.html#TYPEt">t</a></code></pre><div class="info "> a server that can handle no queries<br> </div> <pre><span id="VALcreate"><span class="keyword">val</span> create</span> : <code class="type">implementations:'connection_state <a href="Rpc.Implementation.html#TYPEt">Rpc.Implementation.t</a> list -><br> on_unknown_rpc:[ `Call of rpc_tag:string -> version:int -> unit<br> | `Ignore<br> | `Raise ] -><br> ('connection_state <a href="Rpc.Implementations.html#TYPEt">t</a>,<br> [ `Duplicate_implementations of <a href="Rpc.Implementation.Description.html#TYPEt">Rpc.Implementation.Description.t</a> list ])<br> Core.Std.Result.t</code></pre><div class="info "> <code class="code">create ~implementations ~on_unknown_rpc</code> creates a server capable of responding to the rpc's implemented in the implementation list.<br> </div> <pre><span id="VALcreate_exn"><span class="keyword">val</span> create_exn</span> : <code class="type">implementations:'connection_state <a href="Rpc.Implementation.html#TYPEt">Rpc.Implementation.t</a> list -><br> on_unknown_rpc:[ `Call of rpc_tag:string -> version:int -> unit<br> | `Ignore<br> | `Raise ] -><br> 'connection_state <a href="Rpc.Implementations.html#TYPEt">t</a></code></pre></body></html>