Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Classes | Functions
ext_server.cpp File Reference
#include <grpcpp/grpcpp.h>
#include "panoptes.pb.h"
#include "panoptes.grpc.pb.h"
#include "container_ipc.hpp"
#include <objbase.h>
#include <iostream>
#include <vector>

Go to the source code of this file.

Classes

class  PanoptesImpl
 The PanoptesImpl class is a class that implements the PanoptesExtensibility::Service interface from the gRPC class. More...
 

Functions

void RunContainerServer (LPVOID lpParam)
 The RunContainerServer function is a function that runs the container server.
 

Function Documentation

◆ RunContainerServer()

void RunContainerServer ( LPVOID  lpParam)

The RunContainerServer function is a function that runs the container server.

Parameters
lpParamThe port value that is read from the registry.

Definition at line 105 of file ext_server.cpp.

106{
107 int* ContainerPort = (int*)(lpParam);
108
109 PanoptesImpl service;
110 grpc::ServerBuilder builder;
111 std::string server_url = "localhost:" + std::to_string(*ContainerPort);
112 builder.AddListeningPort(server_url, grpc::InsecureServerCredentials(), ContainerPort);
113 builder.RegisterService(&service);
114 std::unique_ptr<grpc::Server> server(builder.BuildAndStart());
115 server->Wait();
116}
The PanoptesImpl class is a class that implements the PanoptesExtensibility::Service interface from t...

Referenced by WinMain().