diff options
author | root <root@rufastnetmon0.fv.ee> | 2016-03-30 12:00:55 +0300 |
---|---|---|
committer | root <root@rufastnetmon0.fv.ee> | 2016-03-30 12:00:55 +0300 |
commit | 88504f08b2ea5497f58f9f01e368bbbc4b33e9ac (patch) | |
tree | 3a23e95522b7c1ab25c27c6434b709feb8ee2c40 /tools | |
parent | 424136272538cacaf8973caa7406d9bfed2950af (diff) |
Errors while compile gRPC client for C++
Diffstat (limited to 'tools')
-rw-r--r-- | tools/grpc/cpp/gobgp_api_client.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/grpc/cpp/gobgp_api_client.cc b/tools/grpc/cpp/gobgp_api_client.cc index 4780ded7..413c140c 100644 --- a/tools/grpc/cpp/gobgp_api_client.cc +++ b/tools/grpc/cpp/gobgp_api_client.cc @@ -113,7 +113,7 @@ class GrpcClient { current_path->set_nlri(path_c_struct->nlri.value, path_c_struct->nlri.len); - gobgpapi::ModPathArguments request; + gobgpapi::ModPathsArguments request; request.set_resource(gobgpapi::Resource::GLOBAL); google::protobuf::RepeatedPtrField< ::gobgpapi::Path >* current_path_list = request.mutable_paths(); @@ -125,7 +125,7 @@ class GrpcClient { gobgpapi::Error return_error; // result is a std::unique_ptr<grpc::ClientWriter<gobgpapi::ModPathArguments> > - auto send_stream = stub_->ModPath(&context, &return_error); + auto send_stream = stub_->ModPaths(&context, &return_error); bool write_result = send_stream->Write(request); @@ -180,7 +180,7 @@ class GrpcClient { current_path->set_nlri(path_c_struct->nlri.value, path_c_struct->nlri.len); - gobgpapi::ModPathArguments request; + gobgpapi::ModPathsArguments request; request.set_resource(gobgpapi::Resource::GLOBAL); google::protobuf::RepeatedPtrField< ::gobgpapi::Path >* current_path_list = request.mutable_paths(); current_path_list->AddAllocated(current_path); @@ -191,7 +191,7 @@ class GrpcClient { gobgpapi::Error return_error; // result is a std::unique_ptr<grpc::ClientWriter<api::ModPathArguments> > - auto send_stream = stub_->ModPath(&context, &return_error); + auto send_stream = stub_->ModPaths(&context, &return_error); bool write_result = send_stream->Write(request); |