IPC JSON RPC (for external interface) (#1009)

* initial

* rpc file

* compiling nano part

* remove from rpc lib so far

* drop & stop improved

* ok(0)
This commit is contained in:
Nikolay Volf
2016-04-28 17:58:18 +03:00
committed by Gav Wood
parent 0260e9322a
commit a86c39f7fa
3 changed files with 176 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ impl RpcServer {
self.handler.add_delegate(delegate);
}
/// Start server asynchronously and returns result with `Server` handle on success or an error.
/// Start http server asynchronously and returns result with `Server` handle on success or an error.
pub fn start_http(&self, addr: &SocketAddr, cors_domain: Option<String>) -> Result<Server, RpcServerError> {
let cors_domain = cors_domain.to_owned();
Server::start(addr, self.handler.clone(), cors_domain.map(jsonrpc_http_server::AccessControlAllowOrigin::Value))