21 #ifndef INCLUDE_OLA_SLP_SLPCLIENT_H_
22 #define INCLUDE_OLA_SLP_SLPCLIENT_H_
25 #include <ola/OlaClientWrapper.h>
26 #include <ola/network/IPV4Address.h>
27 #include <ola/network/Socket.h>
28 #include <ola/network/SocketAddress.h>
29 #include <ola/slp/Base.h>
30 #include <ola/slp/URLEntry.h>
49 vector<string> scopes;
69 const vector<string> &scopes,
70 const string &service,
78 const vector<string> &scopes,
79 const string &service,
87 const vector<string> &scopes,
88 const string &service,
95 const vector<string> &scopes,
96 const string &service,
98 const vector<URLEntry> &> *callback);
110 auto_ptr<class SLPClientCore> m_core;
118 SLPClient *GetClient()
const {
return m_client.get(); }
121 auto_ptr<SLPClient> m_client;
123 void CreateClient() {
124 if (!m_client.get()) {
125 m_client.reset(
new SLPClient(m_socket.get()));
129 bool StartupClient() {
130 bool ok = m_client->Setup();
131 m_client->SetCloseHandler(
133 &BaseClientWrapper::SocketClosed));
138 m_socket.reset(TCPSocket::Connect(
144 #endif // INCLUDE_OLA_SLP_SLPCLIENT_H_