Go to the documentation of this file.
28 #include "examples/protos/helloworld.grpc.pb.h"
30 #include "helloworld.grpc.pb.h"
60 call->response_reader =
64 call->response_reader->StartCall();
88 if (
call->status.ok())
89 std::cout <<
"Greeter received: " <<
call->reply.message() << std::endl;
91 std::cout <<
"RPC failed" << std::endl;
116 std::unique_ptr<Greeter::Stub>
stub_;
123 int main(
int argc,
char** argv) {
134 for (
int i = 0;
i < 100;
i++) {
139 std::cout <<
"Press control-c to quit" << std::endl << std::endl;
std::unique_ptr< ClientAsyncResponseReader< HelloReply > > response_reader
void SayHello(const std::string &user)
wrapped_grpc_channel * channel
GreeterClient(std::shared_ptr< Channel > channel)
std::shared_ptr< Channel > CreateChannel(const grpc::string &target, const std::shared_ptr< ChannelCredentials > &creds)
bool Next(void **tag, bool *ok)
int main(int argc, char **argv)
std::string SayHello(const std::string &user)
GRPC_CUSTOM_UTIL_STATUS Status
std::shared_ptr< ChannelCredentials > InsecureChannelCredentials()
Credentials for an unencrypted, unauthenticated channel.
static bool to_string(zval *from)
static uv_thread_t thread
std::unique_ptr< Greeter::Stub > stub_
std::unique_ptr< std::thread > thread_
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:47