Go to the documentation of this file.
27 #include "examples/protos/keyvaluestore.grpc.pb.h"
29 #include "keyvaluestore.grpc.pb.h"
37 using keyvaluestore::KeyValueStore;
47 {
"key1",
"value1"}, {
"key2",
"value2"}, {
"key3",
"value3"},
48 {
"key4",
"value4"}, {
"key5",
"value5"},
86 std::cout <<
"Server listening on " <<
server_address << std::endl;
93 int main(
int argc,
char** argv) {
const char * get_value_from_map(const char *key)
std::string server_address("0.0.0.0:10000")
std::unique_ptr< Server > server
int main(int argc, char **argv)
A builder class for the creation and startup of grpc::Server instances.
Status GetValues(ServerContext *context, ServerReaderWriter< Response, Request > *stream) override
GRPC_CUSTOM_UTIL_STATUS Status
static const kv_pair kvs_map[]
std::shared_ptr< ServerCredentials > InsecureServerCredentials()
grpc::ClientContext context
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:10