Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrofsevilla authored Oct 27, 2024
1 parent 341a650 commit 30e92cc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ message SimpleReply {

#include "SimpleService.grpc.pb.h"

//...

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

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

0 comments on commit 30e92cc

Please sign in to comment.