Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrofsevilla authored Jun 2, 2023
1 parent 7bec0ee commit 5b0e16f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ message SimpleReply {

#include "SimpleService.grpc.pb.h"

// ...
//...

GrpcServer server;
server.addListeningPort("127.0.0.1:8800", grpc::InsecureServerCredentials());
Expand All @@ -46,7 +46,7 @@ server.requestCallFromService<SimpleService::AsyncService, SimpleRequest,
});
server.startHandlingCalls();

// ...
//...
```
### Client
```c++
Expand All @@ -56,7 +56,7 @@ server.startHandlingCalls();
#include "SimpleService.grpc.pb.h"
// ...
//...
GrpcClient<SimpleService> client{grpc::CreateChannel(
"127.0.0.1:8800", grpc::InsecureChannelCredentials())};
Expand All @@ -72,5 +72,5 @@ while (true) {
[](const auto& reply) { std::cout << reply.message() << std::endl; });
}
// ...
//...
```

0 comments on commit 5b0e16f

Please sign in to comment.