Lines Matching refs:errorCode
341 DNSServiceErrorType errorCode, const char *replyDomain, void *context)
351 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
356 if (errorCode)
357 printf("Error code %d\n", errorCode);
417 static void DNSSD_API zonedata_resolve(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
434 if (errorCode) { printf("Error code %d\n", errorCode); return; }
477 static void DNSSD_API zonedata_browse(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
484 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
487 if (errorCode) { printf("Error code %d\n", errorCode); return; }
494 static void DNSSD_API browse_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
500 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
504 if (errorCode) printf("Error code %d\n", errorCode);
547 static void DNSSD_API resolve_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
556 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
558 if (errorCode)
559 printf("Error code %d\n", errorCode);
633 static void DNSSD_API reg_reply(DNSServiceRef sdref, const DNSServiceFlags flags, DNSServiceErrorType errorCode,
639 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
644 if (errorCode == kDNSServiceErr_NoError)
658 else if (errorCode == kDNSServiceErr_NameConflict)
664 printf("Error %d\n", errorCode);
679 static void DNSSD_API qr_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
693 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
698 if (!errorCode)
740 if (errorCode)
742 if (errorCode == kDNSServiceErr_NoSuchRecord) printf("No Such Record");
743 else if (errorCode == kDNSServiceErr_Timeout)
760 static void DNSSD_API port_mapping_create_reply(DNSServiceRef sdref, DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode, uint32_t publicAddress, uint32_t protocol, uint16_t privatePort, uint16_t publicPort, uint32_t ttl, void *context)
765 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
769 if (errorCode && errorCode != kDNSServiceErr_DoubleNAT) printf("Error code %d\n", errorCode);
776 printf("%-4d %-20s %-15d %-15d %-15d %-6d%s\n", ifIndex, addr, protocol, ntohs(privatePort), ntohs(publicPort), ttl, errorCode == kDNSServiceErr_DoubleNAT ? " Double NAT" : "");
784 static void DNSSD_API addrinfo_reply(DNSServiceRef sdref, DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *hostname, const struct sockaddr *address, uint32_t ttl, void *context)
790 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
813 if (errorCode)
815 if (errorCode == kDNSServiceErr_NoSuchRecord) printf(" No Such Record");
816 else printf(" Error code %d", errorCode);
917 DNSServiceErrorType errorCode, void *context)
924 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
929 switch (errorCode)
933 default: printf("Error %d\n", errorCode); break;
939 if (!errorCode)