bump product version to 5.0.4.1
[LibreOffice.git] / sd / source / ui / remotecontrol / DiscoveryService.hxx
bloba2ffeff2018402431499973f392930c7f8d03569
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9 #ifndef INCLUDED_SD_SOURCE_UI_REMOTECONTROL_DISCOVERYSERVICE_HXX
10 #define INCLUDED_SD_SOURCE_UI_REMOTECONTROL_DISCOVERYSERVICE_HXX
12 #include <stdio.h>
13 #include <stdlib.h>
15 #include <osl/socket.hxx>
16 #include <osl/thread.hxx>
18 #include "ZeroconfService.hxx"
20 struct sockaddr_in;
22 namespace sd
24 class DiscoveryService : public osl::Thread
26 public:
27 static void setup();
29 private:
30 DiscoveryService();
31 virtual ~DiscoveryService();
33 /**
34 * Networking related setup -- must be run within our own thread
35 * to prevent the application blocking (fdo#75328).
37 void setupSockets();
39 static DiscoveryService *spService;
40 virtual void SAL_CALL run() SAL_OVERRIDE;
41 int mSocket;
43 ZeroconfService * zService;
47 #endif // INCLUDED_SD_SOURCE_UI_REMOTECONTROL_DISCOVERYSERVICE_HXX
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */