[−][src]Crate s_jsonrpc_tcp_server
jsonrpc server over tcp/ip
extern crate s_jsonrpc_core; extern crate s_jsonrpc_tcp_server; use s_jsonrpc_core::*; use s_jsonrpc_tcp_server::ServerBuilder; fn main() { let mut io = IoHandler::default(); io.add_msod("say_hello", |_params| { Ok(Value::String("hello".to_string())) }); let server = ServerBuilder::new(io) .start(&"0.0.0.0:0".parse().unwrap()) .expect("Server must start with no issues."); server.wait(); }
Re-exports
pub use self::server_utils::tokio_core; |
Structs
Dispatcher | Peer-messages dispatcher. |
RequestContext | Request context |
Server | TCP Server handle |
ServerBuilder | TCP server builder |
Enums
PushMessageError | Push Message Error |
Traits
MetaExtractor | Metadata extractor (per session) |