41 const std::string &groupAddr,
42 const std::string &interfaceAddr,
43 bool filterPoints =
false);
57 explicit VoyantClient(
const std::string &addr,
bool filterPoints =
false);
109 std::unique_ptr<uint8_t[]> buffer_;
114 static volatile bool terminated_;
115 static void signalHandler(
int);
Class for interacting with a Voyant Photonics, Inc. sensor to receive data streams.
Definition voyant_client.hpp:17
~VoyantClient()
Destructor - releases resources.
VoyantFrameWrapper & latestFrame()
Gets the latest frame whether or not there's new data.
static void resetTerminationFlag()
Resets the termination flag.
bool tryReceiveNextFrame()
Attempts to receive the next available frame from the data stream.
static bool isTerminated()
Checks if a termination signal has been received.
const VoyantFrameWrapper & latestFrame() const
Gets the latest frame whether or not there's new data (const version)
bool isValid() const
Checks if the client was initialized properly.
VoyantClient(const std::string &bindAddr, const std::string &groupAddr, const std::string &interfaceAddr, bool filterPoints=false)
Creates a multicast VoyantClient for receiving data sent to a multicast group.
static void setupSignalHandling(int signal=SIGINT)
Sets up signal handling for graceful termination.
VoyantClient(const std::string &addr, bool filterPoints=false)
Creates a unicast VoyantClient for receiving data sent directly to this machine.
Wrapper for VoyantFrame messages.
Definition voyant_frame_wrapper.hpp:19
Definition points_client.hpp:24