Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Classes | Functions | Variables
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  MemoryMessageQueue
 
class  PanoptesServiceClient
 Panoptes Service Client that is used to communicate with the Panoptes Service via. More...
 

Functions

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

Variables

MemoryMessageQueuemessage_queue_mem_
 
PeMessageQueuemessage_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 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().

Variable Documentation

◆ message_queue_mem_

MemoryMessageQueue* message_queue_mem_
extern

Definition at line 16 of file container.cpp.

◆ message_queue_pe_

PeMessageQueue* message_queue_pe_
extern

Definition at line 15 of file container.cpp.

Referenced by MessageQueueThread().