21#ifndef PLUGINS_STAGEPROFI_STAGEPROFIDETECTOR_H_
22#define PLUGINS_STAGEPROFI_STAGEPROFIDETECTOR_H_
30#include "ola/io/SelectServerInterface.h"
32#include "ola/network/AdvancedTCPConnector.h"
33#include "ola/util/Backoff.h"
41class StageProfiDetector {
47 const std::vector<std::string> &widget_paths,
48 WidgetCallback *callback);
49 ~StageProfiDetector();
54 void ReleaseWidget(
const std::string &widget_path);
57 typedef std::map<std::string, ola::io::ConnectedDescriptor*> DescriptorMap;
60 std::auto_ptr<WidgetCallback> m_callback;
62 DescriptorMap m_usb_widgets;
63 DescriptorMap m_tcp_widgets;
67 ola::network::TCPSocketFactory m_socket_factory;
A 2 argument callback which can be called multiple times.
Definition Callback.h:1895
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition Descriptor.h:283
The interface for the SelectServer.
Definition SelectServerInterface.h:42
Attempts to open a TCP connection until a failure limit is reached.
Definition AdvancedTCPConnector.h:48
Definition TCPSocket.h:43
Code for Stageprofi devices.
Code for supported devices and protocols.
void * timeout_id
A timeout handle which can later be used to cancel a timeout.
Definition SchedulerInterface.h:34
The namespace containing all OLA symbols.
Definition Credentials.cpp:44