![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
A registered subscriber. Unregisters when destroyed. More...
#include <detector_stream.h>
Public Member Functions | |
| ~DetectorSubscription () | |
| bool | Wait (std::vector< DetectorEventRecord > &out, DWORD timeoutMs) |
| Waits up to timeoutMs for events and moves the queued ones into out (which it clears first). Returns false once StopDetectorStreams has been called. | |
| DetectorSubscription (const DetectorSubscription &)=delete | |
| DetectorSubscription & | operator= (const DetectorSubscription &)=delete |
Static Public Member Functions | |
| static std::unique_ptr< DetectorSubscription > | Open (const std::vector< std::string > &eventNames) |
| Registers a subscriber. Returns nullptr when the service is stopping or too many subscribers are connected. | |
A registered subscriber. Unregisters when destroyed.
Definition at line 38 of file detector_stream.h.
| DetectorSubscription::~DetectorSubscription | ( | ) |
Definition at line 52 of file detector_stream.cpp.
|
delete |
References DetectorSubscription().
Referenced by DetectorSubscription(), Open(), and operator=().
|
static |
Registers a subscriber. Returns nullptr when the service is stopping or too many subscribers are connected.
| eventNames | Only events whose "Event" is in this list are queued; empty means all |
Definition at line 33 of file detector_stream.cpp.
References DetectorSubscription(), and PANO_MAX_DETECTOR_SUBSCRIBERS.
|
delete |
References DetectorSubscription().
| bool DetectorSubscription::Wait | ( | std::vector< DetectorEventRecord > & | out, |
| DWORD | timeoutMs ) |
Waits up to timeoutMs for events and moves the queued ones into out (which it clears first). Returns false once StopDetectorStreams has been called.
Definition at line 59 of file detector_stream.cpp.