LibreOffice Module sd (master) 1
Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
sd::DiscoveryService Class Reference

#include <DiscoveryService.hxx>

Inheritance diagram for sd::DiscoveryService:
[legend]
Collaboration diagram for sd::DiscoveryService:
[legend]

Static Public Member Functions

static void setup ()
 

Private Member Functions

 DiscoveryService ()
 
virtual ~DiscoveryService () override
 
void setupSockets ()
 Networking related setup – must be run within our own thread to prevent the application blocking (fdo#75328). More...
 
virtual void SAL_CALL run () override
 

Private Attributes

int mSocket
 
ZeroconfServicezService
 

Static Private Attributes

static DiscoveryServicespService = nullptr
 

Detailed Description

Definition at line 17 of file DiscoveryService.hxx.

Constructor & Destructor Documentation

◆ DiscoveryService()

DiscoveryService::DiscoveryService ( )
private

Definition at line 52 of file DiscoveryService.cxx.

Referenced by setup().

◆ ~DiscoveryService()

DiscoveryService::~DiscoveryService ( )
overrideprivatevirtual

Definition at line 58 of file DiscoveryService.cxx.

References sd::ZeroconfService::clear(), close, mSocket, and zService.

Member Function Documentation

◆ run()

void SAL_CALL DiscoveryService::run ( )
overrideprivatevirtual

Definition at line 138 of file DiscoveryService.cxx.

References aBuffer, BUFFER_SIZE, mSocket, OUStringToOString(), and setupSockets().

◆ setup()

void DiscoveryService::setup ( )
static

Definition at line 177 of file DiscoveryService.cxx.

References DiscoveryService(), and spService.

◆ setupSockets()

void DiscoveryService::setupSockets ( )
private

Networking related setup – must be run within our own thread to prevent the application blocking (fdo#75328).

Definition at line 73 of file DiscoveryService.cxx.

References htonl(), htons(), mSocket, PORT_DISCOVERY, SAL_WARN, sd::ZeroconfService::setup(), and zService.

Referenced by run().

Member Data Documentation

◆ mSocket

int sd::DiscoveryService::mSocket
private

Definition at line 34 of file DiscoveryService.hxx.

Referenced by run(), setupSockets(), and ~DiscoveryService().

◆ spService

DiscoveryService * sd::DiscoveryService::spService = nullptr
staticprivate

Definition at line 32 of file DiscoveryService.hxx.

Referenced by setup().

◆ zService

ZeroconfService* sd::DiscoveryService::zService
private

Definition at line 36 of file DiscoveryService.hxx.

Referenced by setupSockets(), and ~DiscoveryService().


The documentation for this class was generated from the following files: