slp_ua_common.c revision 2
2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A/* This is used to pass needed params to consumer_thr and slp_call */ 2N/A /* select targets */ 2N/A /* populate the args structure */ 2N/A /* create the queue that this call will use */ 2N/A /* kick off the producer thread */ 2N/A /* kick off the consumer thread */ 2N/A "could not start thread: %s",
2N/A /* cleanup producer thread, if necessary */ 2N/A /* while cb wants more and there is more to get ... */ 2N/A /* reply == NULL if no more available or SLPClosed */ 2N/A /* cb doesn't want any more; invoke last call */ 2N/A /* clean stop producer [thread] */ 2N/A /* empty and free queue */ 2N/A * This is the producer thread 2N/A /* calculate msg length */ 2N/A /* Wait for TCP to complete, if necessary */ 2N/A /* free the message */ 2N/A /* null terminate message queue */ 2N/A * If the message to be sent needs to be multicast, check that it 2N/A * can fit into a datagram. If not, return BUFFER_OVERFLOW, otherwise 2N/A return (
SLP_OK);
/* no mc targets to worry about */