Lines Matching refs:morebytes
872 int morebytes;
878 morebytes = 1;
879 sdr->moreptr = &morebytes;
910 if (!morebytes) {syslog(LOG_WARNING, "dnssdclientstub:Record: CallbackwithError morebytes zero"); return;}
920 // If DNSServiceRefDeallocate was called in the callback, morebytes will be zero. As the sdRef
928 if (!morebytes) {syslog(LOG_WARNING, "dnssdclientstub:sdRef: CallbackwithError morebytes zero sdr %p", sdr); return;}
939 int morebytes = 0;
997 if (morebytes && sdRef->logcounter < 100)
1044 // To do this we set moreptr to point to morebytes. If the client does call DNSServiceRefDeallocate(),
1045 // then that routine will clear morebytes for us, and cause us to exit our loop.
1046 morebytes = more_bytes(sdRef->sockfd);
1047 if (morebytes)
1050 sdRef->moreptr = &morebytes;
1054 // If morebytes is non-zero, that means we set sdRef->moreptr above, and the operation was not
1057 // If morebytes is zero, then one of two thing happened:
1058 // (a) morebytes was 0 above, so we didn't set sdRef->moreptr, so we don't need to clear it
1059 // (b) morebytes was 1 above, and we set sdRef->moreptr, but the operation was cancelled (with DNSServiceRefDeallocate()),
1061 if (morebytes) sdRef->moreptr = NULL;
1064 } while (morebytes);
1079 // If we're in the middle of a DNSServiceProcessResult() invocation for this DNSServiceRef, clear its morebytes flag to break it out of its while loop