| 51 | }; |
| 52 | |
| 53 | int main() |
| 54 | { |
| 55 | Service service{}; |
| 56 | grpc::ServerBuilder builder{}; |
| 57 | |
| 58 | std::string server_address("localhost:50051"); |
| 59 | |
| 60 | builder.AddListeningPort(server_address, grpc::InsecureServerCredentials()); |
| 61 | builder.RegisterService(&service); |
| 62 | |
| 63 | auto server(builder.BuildAndStart()); |
| 64 | std::cout << "Server listening on " << server_address << std::endl; |
| 65 | server->Wait(); |
| 66 | |
| 67 | return 0; |
| 68 | } |
nothing calls this directly
no outgoing calls
no test coverage detected