Instantiate an RPCClient bound to the specified host.
Execute a batch of function calls.
Send a Request object to the server.
Make a function call on the RPC server.
Send a notification to the server.
Make a blocking remote call with natural syntax.
API = An interface containing the function definitions to call on the remote server. <BR> Transport = The network transport to use; by default, we use a TCPTransport.
1 // This is the list of functions on the RPC server. 2 interface MyRemoteFunctions { 3 long func(string param) { return 56789; } 4 } 5 6 // Connect over TCP to a server on localhost. 7 auto rpc = new RPCClient!MyRemoteFunctions("127.0.0.1", 54321); 8 long retval = rpc.func("some string"); 9 assert(retval == 56789);
Implementation of a JSON-RPC client.