blob: bd2decf6293c1c5c6e608923f13dff8483030755 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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);
}
|