Open RFoe opened 4 weeks ago
https://github.com/RFoe/coasync/blob/2e9135c972c0afac9603014353893510dda94186/include/coasync/net/rpc/rpc_client.hpp#L18-L20
net::serde_stream reply = client.call_streaming("get_bytes", 5); for(unsigned int i {}; i < 5; i ++) { std::printf("%c\n", co_await reply.get<char>()); }
https://github.com/RFoe/coasync/blob/2e9135c972c0afac9603014353893510dda94186/include/coasync/net/rpc/rpc_client.hpp#L18-L20
或许是这样