summaryrefslogtreecommitdiffhomepage
path: root/tools/grpc/cpp
diff options
context:
space:
mode:
authorISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-12-22 15:25:08 +0900
committerISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>2015-12-22 15:29:29 +0900
commitc0e0aafa749f893d7b4f75a8dd7b93fea8153cdc (patch)
treed2945b296e97bf99126cf95c7829bd77a1ebb1f7 /tools/grpc/cpp
parent406efffa74eadb44826e4b464dc2fbabdddf72c4 (diff)
gobgpd/gobgp: change grcp port to 50051 from 8080
also add an option to change grpc port Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools/grpc/cpp')
-rw-r--r--tools/grpc/cpp/gobgp_api_client.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/grpc/cpp/gobgp_api_client.cc b/tools/grpc/cpp/gobgp_api_client.cc
index 2d0b0960..4780ded7 100644
--- a/tools/grpc/cpp/gobgp_api_client.cc
+++ b/tools/grpc/cpp/gobgp_api_client.cc
@@ -245,7 +245,7 @@ class GrpcClient {
};
int main(int argc, char** argv) {
- GrpcClient gobgp_client(grpc::CreateChannel("localhost:8080", grpc::InsecureChannelCredentials()));
+ GrpcClient gobgp_client(grpc::CreateChannel("localhost:50051", grpc::InsecureChannelCredentials()));
std::string reply = gobgp_client.GetNeighbor("213.133.111.200");
std::cout << "Neighbor information: " << reply << std::endl;