diff --git a/README.md b/README.md index dcd9b3b..e2ba52a 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,11 @@ message SimpleReply { ```c++ #include #include + #include "SimpleService.grpc.pb.h" -//... + +// ... + GrpcServer server; server.addListeningPort("127.0.0.1:8800", grpc::InsecureServerCredentials()); SimpleService::AsyncService service; @@ -42,15 +45,19 @@ server.requestCallFromService #include #include + #include "SimpleService.grpc.pb.h" -//... + +// ... + GrpcClient client{grpc::CreateChannel( "127.0.0.1:8800", grpc::InsecureChannelCredentials())}; auto thread = @@ -64,5 +71,6 @@ while (true) { call, &SimpleService::Stub::PrepareAsyncSendRequest, [](const auto& reply) { std::cout << reply.message() << std::endl; }); } -//... + +// ... ```