22 #ifndef INCLUDE_OLA_E133_OLASLPTHREAD_H_
23 #define INCLUDE_OLA_E133_OLASLPTHREAD_H_
26 #include <ola/e133/SLPThread.h>
27 #include <ola/network/Socket.h>
28 #include <ola/network/TCPSocket.h>
29 #include <ola/slp/SLPClient.h>
30 #include <ola/thread/ExecutorInterface.h>
31 #include <ola/thread/Thread.h>
32 #include <ola/util/Backoff.h>
48 unsigned int discovery_interval = DEFAULT_DISCOVERY_INTERVAL_SECONDS);
56 const string &service);
64 void ThreadStopping();
69 auto_ptr<ola::network::TCPSocket> m_slp_socket;
70 auto_ptr<ola::slp::SLPClient> m_slp_client;
71 ola::thread::timeout_id m_reconnect_timeout;
75 const URLEntries &urls);
77 const string &status, uint16_t error_code);
79 const string &status, uint16_t error_code);
85 void ShutdownClient();
86 bool ConnectAndSetupClient();
87 void AttemptSLPConnection();
91 #endif // INCLUDE_OLA_E133_OLASLPTHREAD_H_