Lines Matching defs:errorCode

536                                  DNSServiceErrorType errorCode, const char *replyDomain, void *context)
546 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
551 if (errorCode)
552 printf("Error code %d\n", errorCode);
612 static void DNSSD_API zonedata_resolve(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
629 if (errorCode) { printf("Error code %d\n", errorCode); return; }
672 static void DNSSD_API zonedata_browse(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
679 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
682 if (errorCode) { printf("Error code %d\n", errorCode); return; }
689 static void DNSSD_API browse_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
695 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
699 if (errorCode)
700 printf("Error code %d\n", errorCode);
745 static void DNSSD_API resolve_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
754 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
756 if (errorCode)
757 printf("Error code %d\n", errorCode);
831 static void DNSSD_API reg_reply(DNSServiceRef sdref, const DNSServiceFlags flags, DNSServiceErrorType errorCode,
837 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
842 if (errorCode == kDNSServiceErr_NoError)
856 else if (errorCode == kDNSServiceErr_NameConflict)
862 printf("Error %d\n", errorCode);
991 static void DNSSD_API qr_reply(DNSServiceRef sdref, const DNSServiceFlags flags, uint32_t ifIndex, DNSServiceErrorType errorCode,
1008 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
1030 if (!errorCode) //to avoid printing garbage in rdata
1106 if (errorCode)
1108 if (errorCode == kDNSServiceErr_NoSuchRecord)
1110 else if (errorCode == kDNSServiceErr_Timeout)
1128 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)
1133 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
1137 if (errorCode && errorCode != kDNSServiceErr_DoubleNAT) printf("Error code %d\n", errorCode);
1144 printf("%-4d %-20s %-15d %-15d %-15d %-6d%s\n", ifIndex, addr, protocol, ntohs(privatePort), ntohs(publicPort), ttl, errorCode == kDNSServiceErr_DoubleNAT ? " Double NAT" : "");
1152 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)
1161 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
1190 if (!errorCode && (check_flags & (kDNSServiceFlagsValidate | kDNSServiceFlagsValidateOptional)))
1209 if (errorCode)
1211 if (errorCode == kDNSServiceErr_NoSuchRecord)
1214 printf(" Error code %d", errorCode);
1316 DNSServiceErrorType errorCode, void *context)
1323 EXIT_IF_LIBDISPATCH_FATAL_ERROR(errorCode);
1328 switch (errorCode)
1332 default: printf("Error %d\n", errorCode); break;
1338 if (!errorCode)