MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / rpc_server

Function rpc_server

rpc/test/test.cpp:109–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void* rpc_server(void* args_)
110{
111 LOG_DEBUG("enter");
112 auto s = (IStream*)args_;
113 while (true)
114 {
115 auto header = rpc_server_read(s);
116 rpc_server_write(s, header.tag);
117 if (header.function == (uint64_t)-1) break;
118 }
119 LOG_DEBUG("exit");
120 return nullptr;
121}
122
123int server_function(void* instance, iovector* request, rpc::Skeleton::ResponseSender sender, IStream*)
124{

Callers

nothing calls this directly

Calls 2

rpc_server_readFunction · 0.85
rpc_server_writeFunction · 0.85

Tested by

no test coverage detected