tetsy-jsonrpc-ipc-server

Crates.iotetsy-jsonrpc-ipc-server
lib.rstetsy-jsonrpc-ipc-server
version15.1.0
sourcesrc
created_at2021-03-01 07:56:27.381393
updated_at2021-03-13 04:05:51.91391
descriptionTetsy IPC server for JSON-RPC
homepagehttps://core.tetcoin.org
repositoryhttps://github.com/tetcoin/tetsy-jsonrpc
max_upload_size
id362112
size49,332
Marlon Hanks (marlonhanks)

documentation

https://docs.rs/tetsy-jsonrpc-ipc-server/

README

tetsy-jsonrpc-ipc-server

IPC server (Windows & Linux) for JSON-RPC 2.0.

Documentation

Example

Cargo.toml

[dependencies]
tetsy-jsonrpc-ipc-server = "14.2"

main.rs

extern crate tetsy_jsonrpc_ipc_server;

use tetsy_jsonrpc_ipc_server::ServerBuilder;
use tetsy_jsonrpc_ipc_server::tetsy_jsonrpc_core::*;

fn main() {
	let mut io = IoHandler::new();
	io.add_method("say_hello", |_params| {
		Ok(Value::String("hello".into()))
	});

	let builder = ServerBuilder::new(io);
	let server = builder.start("/tmp/json-ipc-test.ipc").expect("Couldn't open socket");
	server.wait();
}
Commit count: 754

cargo fmt