Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
container_ipc.hpp File Reference
#include <Windows.h>
#include <string>
#include <queue>
#include <mutex>
#include <condition_variable>
#include <thread>
#include "ExtensibilityCore.h"

Go to the source code of this file.

Classes

class  PeMessageQueue
class  PanoptesServiceClient
 The Panoptes Service client used to talk to the service over gRPC. More...

Functions

VOID RunContainerServer (LPVOID ContainerPort)
 The RunContainerServer function is a function that runs the container server.

Variables

PeMessageQueue * message_queue_pe_

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 68 of file ext_server.cpp.

69{
70 int* ContainerPort = (int*)(lpParam);
71
72 PanoptesImpl service;
73 grpc::ServerBuilder builder;
74 std::string server_url = "localhost:" + std::to_string(*ContainerPort);
75 builder.AddListeningPort(server_url, grpc::InsecureServerCredentials(), ContainerPort);
76 builder.RegisterService(&service);
77 std::unique_ptr<grpc::Server> server(builder.BuildAndStart());
78 server->Wait();
79}
The PanoptesImpl class is a class that implements the PanoptesExtensibility::Service interface from t...

Referenced by WinMain().

Variable Documentation

◆ message_queue_pe_

PeMessageQueue* message_queue_pe_
extern

Definition at line 15 of file container.cpp.

Referenced by MessageQueueThread().