Lines Matching defs:reply

167     // reply, termination, error, and client context info
171 struct reply_state *replies; // corresponding (active) reply list
521 reply_state *reply;
529 reply = mallocL("reply_state", sizeof(reply_state) + datalen - sizeof(reply_hdr));
530 if (!reply) FatalError("ERROR: malloc");
532 reply->next = mDNSNULL;
533 reply->totallen = (mDNSu32)datalen + sizeof(ipc_msg_hdr);
534 reply->nwriten = 0;
536 reply->mhdr->version = VERSION;
537 reply->mhdr->datalen = (mDNSu32)datalen;
538 reply->mhdr->ipc_flags = 0;
539 reply->mhdr->op = op;
540 reply->mhdr->client_context = request->hdr.client_context;
541 reply->mhdr->reg_index = 0;
543 return reply;
546 // Append a reply to the list in a request object
548 // If the request does not want asynchronous replies, then the reply is freed instead of being appended to any list.
590 // Calculate reply data length
598 // Build reply header
604 // Build reply body
633 // Calculate reply data length
641 // Build reply header
647 // Build reply body
1103 reply_state *reply = create_reply(reg_record_reply_op, len, request);
1104 reply->mhdr->client_context = re->regrec_client_context;
1105 reply->rhdr->flags = dnssd_htonl(0);
1106 reply->rhdr->ifi = dnssd_htonl(mDNSPlatformInterfaceIndexfromInterfaceID(m, rr->resrec.InterfaceID, mDNSfalse));
1107 reply->rhdr->error = dnssd_htonl(result);
1108 append_reply(request, reply);
2760 // calculate reply length
2769 // allocate/init reply header
2777 // write reply data to message
3275 len = sizeof(DNSServiceFlags); // calculate reply data length
3867 reply_state *reply;
3875 reply = create_reply(enumeration_reply_op, len, request);
3876 reply->rhdr->flags = dnssd_htonl(flags);
3877 reply->rhdr->ifi = dnssd_htonl(ifi);
3878 reply->rhdr->error = dnssd_htonl(err);
3879 data = (char *)&reply->rhdr[1];
3881 return reply;
3907 reply_state *reply;
3930 reply = format_enumeration_reply(request, domain, flags, kDNSServiceInterfaceIndexAny, kDNSServiceErr_NoError);
3931 if (!reply) { LogMsg("ERROR: enum_result_callback, format_enumeration_reply"); return; }
3935 append_reply(request, reply);
4238 // calculate reply data length
6152 reply_state *const rep = req->replies; // Send the first waiting reply
6197 // Note: Only primary req's have reply lists, not subordinate req's.