2012-08-02 11:28:38 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
#ifndef _SD_IMPRESSREMOTE_DISCOVERYSERVICE_HXX
|
|
|
|
#define _SD_IMPRESSREMOTE_DISCOVERYSERVICE_HXX
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include <osl/socket.hxx>
|
2012-11-23 17:59:41 +01:00
|
|
|
#include <osl/thread.hxx>
|
2012-08-02 11:28:38 +02:00
|
|
|
|
2013-07-25 15:45:19 +02:00
|
|
|
#include "ZeroconfService.hxx"
|
2012-08-02 11:28:38 +02:00
|
|
|
|
2012-08-02 16:40:31 +02:00
|
|
|
struct sockaddr_in;
|
|
|
|
|
2012-08-02 11:28:38 +02:00
|
|
|
namespace sd
|
|
|
|
{
|
2012-11-23 17:59:41 +01:00
|
|
|
class DiscoveryService : public osl::Thread
|
2012-08-02 11:28:38 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
static void setup();
|
|
|
|
|
|
|
|
private:
|
|
|
|
DiscoveryService();
|
|
|
|
~DiscoveryService();
|
2012-08-02 12:27:19 +02:00
|
|
|
|
2012-08-02 11:28:38 +02:00
|
|
|
static DiscoveryService *spService;
|
2012-11-23 17:59:41 +01:00
|
|
|
virtual void SAL_CALL run();
|
2013-07-21 14:09:10 +02:00
|
|
|
int mSocket;
|
2012-08-02 11:28:38 +02:00
|
|
|
|
2013-07-25 15:45:19 +02:00
|
|
|
ZeroconfService * zService;
|
2012-08-02 11:28:38 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // _SD_IMPRESSREMOTE_DISCOVERYSERVICE_HXX
|
2012-11-23 17:59:41 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|