Started work on the server, continuing client to be able to test
This commit is contained in:
@@ -1,2 +1,14 @@
|
||||
#include "logic/service.h"
|
||||
#include <grpcpp/grpcpp.h>
|
||||
|
||||
int main(int argc, char *argv[]) { return 0; }
|
||||
int main(int argc, char *argv[]) {
|
||||
Service service;
|
||||
std::string server_address = "0.0.0.0:50051";
|
||||
grpc::ServerBuilder builder;
|
||||
builder.AddListeningPort(server_address, grpc::InsecureServerCredentials());
|
||||
builder.RegisterService(&service);
|
||||
std::unique_ptr<grpc::Server> server(builder.BuildAndStart());
|
||||
std::cout << "Server listening on " << server_address << std::endl;
|
||||
server->Wait();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user