Lines Matching defs:errorCode
514 DNSServiceErrorType errorCode, const char *replyDomain, void *context)
524 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
529 if (errorCode)
530 printf("Error code %d\n", errorCode);
590 static void DNSSD_API zonedata_resolve(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
607 if (errorCode) { printf("Error code %d\n", errorCode); return; }
650 static void DNSSD_API zonedata_browse(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
657 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
660 if (errorCode) { printf("Error code %d\n", errorCode); return; }
667 static void DNSSD_API browse_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
673 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
677 if (errorCode)
678 printf("Error code %d\n", errorCode);
723 static void DNSSD_API resolve_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
732 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
734 if (errorCode)
735 printf("Error code %d\n", errorCode);
809 static void DNSSD_API reg_reply(DNSServiceRef sdref, const DNSServiceFlags flags, DNSServiceErrorType errorCode,
815 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
820 if (errorCode == kDNSServiceErr_NoError)
834 else if (errorCode == kDNSServiceErr_NameConflict)
840 printf("Error %d\n", errorCode);
969 static void DNSSD_API qr_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
986 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
1008 if (!errorCode) //to avoid printing garbage in rdata
1084 if (errorCode)
1086 if (errorCode == kDNSServiceErr_NoSuchRecord)
1088 else if (errorCode == kDNSServiceErr_Timeout)
1105 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)
1110 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
1114 if (errorCode && errorCode != kDNSServiceErr_DoubleNAT) printf("Error code %d\n", errorCode);
1121 printf("%-4d %-20s %-15d %-15d %-15d %-6d%s\n", ifIndex, addr, protocol, ntohs(privatePort), ntohs(publicPort), ttl, errorCode == kDNSServiceErr_DoubleNAT ? " Double NAT" : "");
1127 static void DNSSD_API addrinfo_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t interfaceIndex, DNSServiceErrorType errorCode, const char *hostname, const struct sockaddr *address, uint32_t ttl, void *context)
1136 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
1165 if (!errorCode && (check_flags & (kDNSServiceFlagsValidate | kDNSServiceFlagsValidateOptional)))
1184 if (errorCode)
1186 if (errorCode == kDNSServiceErr_NoSuchRecord)
1189 printf(" Error code %d", errorCode);
1290 DNSServiceErrorType errorCode, void *context)
1297 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
1302 switch (errorCode)
1306 default: printf("Error %d\n", errorCode); break;
1312 if (!errorCode)