Lines Matching refs:cbh

117 typedef void (*ProcessReplyFn)(DNSServiceOp *const sdr, const CallbackHeader *const cbh, const char…
913 CallbackHeader cbh; in DNSServiceProcessResult() local
920 int result = read_all(sdRef->sockfd, (void *)&cbh.ipc_hdr, sizeof(cbh.ipc_hdr)); in DNSServiceProcessResult()
951 ConvertHeaderBytes(&cbh.ipc_hdr); in DNSServiceProcessResult()
952 if (cbh.ipc_hdr.version != VERSION) in DNSServiceProcessResult()
954 …SServiceProcessResult daemon version %d does not match client version %d", cbh.ipc_hdr.version, VE… in DNSServiceProcessResult()
959 data = malloc(cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
961 …if (read_all(sdRef->sockfd, data, cbh.ipc_hdr.datalen) < 0) // On error, read_all will write a mes… in DNSServiceProcessResult()
985 cbh.cb_flags = get_flags (&ptr, data + cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
986 cbh.cb_interface = get_uint32 (&ptr, data + cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
987 cbh.cb_err = get_error_code(&ptr, data + cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
995 cbh.cb_flags |= kDNSServiceFlagsMoreComing; in DNSServiceProcessResult()
998 if (ptr) sdRef->ProcessReply(sdRef, &cbh, ptr, data + cbh.ipc_hdr.datalen); in DNSServiceProcessResult()
1115 static void handle_resolve_response(DNSServiceOp *const sdr, const CallbackHeader *const cbh, const… in handle_resolve_response() argument
1133 …((DNSServiceResolveReply)sdr->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_err, ful… in handle_resolve_response()
1193 static void handle_query_response(DNSServiceOp *const sdr, const CallbackHeader *const cbh, const c… in handle_query_response() argument
1208 …else ((DNSServiceQueryRecordReply)sdr->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb… in handle_query_response()
1252 static void handle_addrinfo_response(DNSServiceOp *const sdr, const CallbackHeader *const cbh, cons… in handle_addrinfo_response() argument
1284 if (!cbh->cb_err) memcpy(&sa4.sin_addr, rdata, rdlen); in handle_addrinfo_response()
1296 if (!cbh->cb_err) in handle_addrinfo_response()
1299 if (IN6_IS_ADDR_LINKLOCAL(&sa6.sin6_addr)) sa6.sin6_scope_id = cbh->cb_interface; in handle_addrinfo_response()
1302 …((DNSServiceGetAddrInfoReply)sdr->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_err,… in handle_addrinfo_response()
1347 static void handle_browse_response(DNSServiceOp *const sdr, const CallbackHeader *const cbh, const … in handle_browse_response() argument
1354 …else ((DNSServiceBrowseReply)sdr->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_err,… in handle_browse_response()
1396 const CallbackHeader *const cbh, in handle_hostname_changed_response() argument
1405 sdr, cbh->cb_flags, cbh->cb_err, replyHostname, sdr->AppContext); in handle_hostname_changed_response()
1460 static void handle_regservice_response(DNSServiceOp *const sdr, const CallbackHeader *const cbh, co… in handle_regservice_response() argument
1467 …else ((DNSServiceRegisterReply)sdr->AppCallback)(sdr, cbh->cb_flags, cbh->cb_err, name, regtype, d… in handle_regservice_response()
1531 static void handle_enumeration_response(DNSServiceOp *const sdr, const CallbackHeader *const cbh, c… in handle_enumeration_response() argument
1536 …else ((DNSServiceDomainEnumReply)sdr->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_… in handle_enumeration_response()
1575 static void ConnectionResponse(DNSServiceOp *const sdr, const CallbackHeader *const cbh, const char… in ConnectionResponse() argument
1577 DNSRecordRef rref = cbh->ipc_hdr.client_context.context; in ConnectionResponse()
1581 if (cbh->ipc_hdr.op != reg_record_reply_op) in ConnectionResponse()
1587 …while (op && (op->uid.u32[0] != cbh->ipc_hdr.client_context.u32[0] || op->uid.u32[1] != cbh->ipc_h… in ConnectionResponse()
1591 if (op && op->ProcessReply) op->ProcessReply(op, cbh, data, end); in ConnectionResponse()
1597 rref->AppCallback(rref->sdr, rref, cbh->cb_flags, cbh->cb_err, rref->AppContext); in ConnectionResponse()
1883 static void handle_port_mapping_response(DNSServiceOp *const sdr, const CallbackHeader *const cbh, … in handle_port_mapping_response() argument
1905 …((DNSServiceNATPortMappingReply)sdr->AppCallback)(sdr, cbh->cb_flags, cbh->cb_interface, cbh->cb_e… in handle_port_mapping_response()