9 main(int argc
, char *argv
[])
11 const char hwaddr
[] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB };
16 WORD wVersionRequested
;
19 wVersionRequested
= MAKEWORD(2, 2);
20 if (WSAStartup(wVersionRequested
, &wsaData
) != 0) {
23 if (LOBYTE(wsaData
.wVersion
) != 2 ||
24 HIBYTE(wsaData
.wVersion
) != 2) {
29 dnssd
= dnssd_init(NULL
);
31 printf("Failed to init dnssd\n");
34 dnssd_register_raop(dnssd
, "Test", 5000, hwaddr
, sizeof(hwaddr
));
35 dnssd_register_airplay(dnssd
, "Test", 6000, hwaddr
, sizeof(hwaddr
));
39 dnssd_unregister_raop(dnssd
);
40 dnssd_unregister_airplay(dnssd
);