client端流程
2016-01-15 18:44:03 0 举报
nrpc 客户端
作者其他创作
大纲/内容
channel.init()stub = new ServiceStub(channel)cntl = new Controller()
default_protocol-parse()state = RPC_SESSION_PROCESS
Bussiness code
Start
rpc_core() -- rpc_core_handler()
send_with_timeout(iobuf)state = RPC_SESSION_READINGrecv_with_timeout(iobuf)
用户代码
default_protocol-process_response get the response
if any error iobuf-read_point_resume rpc_core_handler()
if (done != NULL) done-Run()cntl-finalize()
channel-CallMethod()
0 条评论
下一页