// Copyright (2019-2023) Paul Scherrer Institute #include #include #include #include #include #include "JFJochDetector.h" #include "../common/Logger.h" #include "../grpc/gRPCServer_Template.h" int main(int argc, char **argv) { Logger logger("jfjoch_detector"); nlohmann::json input; std::string grpc_addr = "unix:/opt/jfjoch/.jfjoch-detector"; if (argc == 2) grpc_addr = "0.0.0.0:" + std::string(argv[1]); JFJochDetector service; auto server = gRPCServer(grpc_addr, service); logger.Info("gRPC configuration listening on " + grpc_addr); server->Wait(); }