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

Function rpc_server_write

rpc/test/test.cpp:96–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95char STR[] = "!@#$%^&*()_+";
96void rpc_server_write(IStream* s, uint64_t tag)
97{
98 rpc::Header header;
99 header.tag = tag;
100 header.size = LEN(STR);
101
102 IOVector iov;
103 iov.push_back(&header, sizeof(header));
104 iov.push_back(STR, LEN(STR));
105
106 s->writev(iov.iovec(), iov.iovcnt());
107}
108
109void* rpc_server(void* args_)
110{

Callers 1

rpc_serverFunction · 0.85

Calls 5

LENFunction · 0.50
push_backMethod · 0.45
writevMethod · 0.45
iovecMethod · 0.45
iovcntMethod · 0.45

Tested by

no test coverage detected