'\" te .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] .TH DNSSERVICEPROCESSRESULT 3DNS_SD "Aug 20, 2007" .SH NAME DNSServiceProcessResult \- process results and invoke callback .SH SYNOPSIS .LP .nf \fBcc\fR [ \fIflag\fR ... ] \fIfile\fR ... \fB-ldns_sd\fR [ \fIlibrary\fR ... ] #include \fBDNSServiceErrorType\fR \fBDNSServiceProcessResult\fR (\fBDNSServiceRef\fR \fIsdRef\fR); .fi .SH DESCRIPTION .sp .LP The \fBDNSServiceProcessResult()\fR call reads the returned results from the \fBmDNS\fR daemon and invokes the specified application callback. The \fIsdRef\fR points to a \fBDNSServiceRef\fR initialized by any of the \fBDNSService\fR calls that take a \fIcallback\fR parameter. The \fBDNSServiceProcessResult()\fR call blocks until data is received from the \fBmDNS\fR daemon. The application is responsible for ensuring that \fBDNSServiceProcessResult()\fR is called whenever there is a reply from the daemon. The daemon may terminate its connection with a client that does not process the daemon's responses. .SH RETURN VALUES .sp .LP The \fBDNSServiceProcessResult()\fR call returns \fBkDNSServiceErr_NoError\fR on success. Otherwise, an error code defined in \fB\fR is returned to indicate the specific failure that has occurred. .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for description of the following attributes: .sp .sp .TS box; c | c l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability Committed _ MT-Level Safe .TE .SH SEE ALSO .sp .LP \fBDNSServiceBrowse\fR(3DNS_SD), \fBDNSServiceRegister\fR(3DNS_SD), \fBattributes\fR(5)