2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 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 (c) 2002-2003, Network Appliance, Inc. All rights reserved. 2N/A * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A * PURPOSE: Connection management 2N/A * Description: Interfaces in this file are completely described in 2N/A * the DAPL 1.1 API, Chapter 6, section 4 2N/A * uDAPL: User Direct Access Program Library Version 1.1, 6.4.1.1 2N/A * Create a persistent Public Service Point that can recieve multiple 2N/A * requests for connections and generate multiple connection request 2N/A * instances that wil be delivered to the specified Event Dispatcher 2N/A * in a notification event. 2N/A * DAT_INSUFFICIENT_RESOURCES 2N/A * DAT_INVALID_PARAMETER 2N/A * DAT_CONN_QUAL_IN_USE 2N/A * DAT_MODEL_NOT_SUPPORTED 2N/A /* check for invalid psp flags */ 2N/A * check for connection qualifier eq 0 2N/A * in IB this is called Null Service ID, use of it in CM is invalid. 2N/A * See if we have a quiescent listener to use for this PSP, else 2N/A * create one and set it listening 2N/A * Fill out the args for a PSP 2N/A * Take a reference on the EVD handle 2N/A * Set up a listener for a connection. Connections can arrive 2N/A * even before this call returns! 2N/A * If this is a new sp we need to add it to the IA queue, and set up 2N/A /* Link it onto the IA */ 2N/A * Have a problem setting up the connection, something 2N/A * wrong! The psp_free decrements the EVD refcount for 2N/A * us; we don't * need to do that. 2N/A * But we want to set the listener bits to false, 2N/A * as we know that call failed. 2N/A "--> dapl_psp_create setup_conn_listener failed: " 2N/A * Return handle to the user