Lines Matching refs:callBack
115 // client stub callback to process message from server and deliver results to client application
140 void *AppCallback; // Client callback function and context
820 // We can't touch the sdr after the callback as it can be deallocated in the callback
848 // This means Register Record, walk the list of DNSRecords to do the callback
854 // The Callback can call DNSServiceRefDeallocate which in turn frees sdr and all the records.
866 // If DNSServiceRefDeallocate was called in the callback, morebytes will be zero. It means
875 // Handle reply from server, calling application client callback. If there is no reply
915 // Set the ProcessReply to NULL before callback as the sdRef can get deallocated
916 // in the callback.
955 // Set the ProcessReply to NULL before callback as the sdRef can get deallocated
956 // in the callback.
981 // CAUTION: We have to handle the case where the client calls DNSServiceRefDeallocate from within the callback function.
1127 // MUST NOT touch sdr after invoking AppCallback -- client is allowed to dispose it from within callback function
1140 DNSServiceResolveReply callBack,
1149 if (!name || !regtype || !domain || !callBack) return kDNSServiceErr_BadParam;
1161 err = ConnectToServer(sdRef, flags, resolve_request, handle_resolve_response, callBack, context);
1201 // MUST NOT touch sdr after invoking AppCallback -- client is allowed to dispose it from within callback function
1212 DNSServiceQueryRecordReply callBack,
1219 DNSServiceErrorType err = ConnectToServer(sdRef, flags, query_request, handle_query_response, callBack, context);
1295 // MUST NOT touch sdr after invoking AppCallback -- client is allowed to dispose it from within callback function
1306 DNSServiceGetAddrInfoReply callBack,
1317 err = ConnectToServer(sdRef, flags, addrinfo_request, handle_addrinfo_response, callBack, context);
1347 // MUST NOT touch sdr after invoking AppCallback -- client is allowed to dispose it from within callback function
1357 DNSServiceBrowseReply callBack,
1364 DNSServiceErrorType err = ConnectToServer(sdRef, flags, browse_request, handle_browse_response, callBack, context);
1393 // MUST NOT touch sdr after invoking AppCallback -- client is allowed to dispose it from within callback function
1401 DNSHostnameChangedReply callBack,
1408 DNSServiceErrorType err = ConnectToServer(sdRef, flags, sethost_request, handle_hostname_changed_response, callBack, context);
1451 // MUST NOT touch sdr after invoking AppCallback -- client is allowed to dispose it from within callback function
1466 DNSServiceRegisterReply callBack,
1482 // No callback must have auto-rename
1483 if (!callBack && (flags & kDNSServiceFlagsNoAutoRename)) return kDNSServiceErr_BadParam;
1485 err = ConnectToServer(sdRef, flags, reg_service_request, callBack ? handle_regservice_response : NULL, callBack, context);
1496 if (!callBack) hdr->ipc_flags |= IPC_FLAGS_NOREPLY;
1520 // MUST NOT touch sdr after invoking AppCallback -- client is allowed to dispose it from within callback function
1528 DNSServiceDomainEnumReply callBack,
1541 err = ConnectToServer(sdRef, flags, enumeration_request, handle_enumeration_response, callBack, context);
1586 // MUST NOT touch sdr after invoking AppCallback -- client is allowed to dispose it from within callback function
1617 DNSServiceRegisterRecordReply callBack,
1667 rref->AppCallback = callBack;
1890 // MUST NOT touch sdr after invoking AppCallback -- client is allowed to dispose it from within callback function
1905 DNSServiceNATPortMappingReply callBack,
1915 DNSServiceErrorType err = ConnectToServer(sdRef, flags, port_mapping_request, handle_port_mapping_response, callBack, context);