Files
libreoffice/sd/source/ui/remotecontrol/WINNetworkService.cxx

20 lines
480 B
C++
Raw Normal View History

#include <string>
#include <iostream>
#include "WINNetworkService.hxx"
#include <sal/log.hxx>
void sd::WINNetworkService::setup()
{
DNSServiceErrorType err = DNSServiceRegister(&client, 0, 0, nullptr, kREG_TYPE, "local", nullptr, 1599, 1, "", nullptr, this );
if (kDNSServiceErr_NoError != err)
SAL_WARN("sdremote.wifi", "DNSServiceRegister failed: " << err);
// Fail silently
}
void sd::WINNetworkService::clear()
{
DNSServiceRefDeallocate(client);
}