Construct an RPCServer!API object to communicate via TCP sockets.
Construct an RPCServer!API object to communicate via TCP sockets.
Listen for and respond to connections.
API = A class or struct containing the functions available for the client to call. <BR> Listener = The object to use to manage client connections. By default, a TCPTransport.
class MyFunctions { long func(string param) { return 56789; } } // Bind to a local port and serve func on a platter. auto serve = new RPCServer!MyFunctions("127.0.0.1", 54321); serve.listen();
Implementation of a JSON-RPC server.
This implementation only supports communication via TCP sockets.