【文件属性】:
文件名称:nim-rpc:基于msgpack4nim的Nim的RPC实现
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-28 11:46:04
Nim
nim-rpc
Nim的RPC实现基于创建的msgpack4nim。
安装
前提条件
安装了器
安装命令
nimble install nimrpc
例子
RPC服务器
import nimrpc/rpc_server, nimrpc/rpc_type, asyncnet, asyncdispatch, msgpack
# Define your remote proc
# Remote porc must have two params, first is input, second is output (so it's var param).
# Return value must be an int as error code, for example, 0 for success, -1 for error.
proc remoteAdd (param: tuple [v1: i
【文件预览】:
nim-rpc-master
----.gitignore(16B)
----todo.txt(150B)
----src()
--------nimrpc()
----.travis.yml(642B)
----README.md(2KB)
----example()
--------nim.cfg(17B)
--------example_server.nim(768B)
--------example_client.nim(402B)
----nimrpc.nimble(272B)