Hi, I would like to just obtain the information of the server I connected
to here is how my functionality is being used:
ProjectGuideClient
client(grpc::CreateChannel(server,grpc::InsecureChannelCredentials()));
client.Dele(args);
If I return back a not ok status I would like to connect to a master node
and retrieve the back up server to connect to. To do this I need to send
the server that I want the back up to. In this case I need to obtain the
variable "server" as shown in above. where can I access this information?
and how. below there are questions marks of how I would to use it and I
thought I could get the information? Thanks!!
/*
Dele rpc command
Parms string row, string col
Returns true if deleted, false if an error
*/
bool ProjectGuideClient::Dele(DeleArgs args) {
DeleResponse response;
ClientContext context;
Status status = stub_->Dele(&context, args, &response);
if(status.ok())
return status.ok();
else{
//get my channel to senda rewuest for backup
my channel = "Channel.Target(); ???????
}
}
--
You received this message because you are subscribed to the Google Groups
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/f533c38b-4e92-4ea0-824a-f727869de35e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.