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 2003 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.2 2N/A * Destroy a specific instance of a Service Point. 2N/A * DAT_INVALID_PARAMETER 2N/A /* ia_ptr = (DAPL_IA *)sp_ptr->header.owner_ia; */ 2N/A * Remove the connection listener if it has been established 2N/A * and there are no current connections in progress. 2N/A * If we defer removing the sp it becomes something of a zombie 2N/A * container until the last connection is disconnected, after 2N/A * which it will be cleaned up. 2N/A * Release reference on EVD. 2N/A * If an error was encountered in a previous 2N/A * free the evd_handle will be NULL 2N/A * Release the base resource if there are no outstanding 2N/A * connections; else the last disconnect on this PSP will free it 2N/A * up. The PSP is used to contain CR records for each connection, 2N/A * which contain information necessary to disconnect. 2N/A /* revert to entry state on error */ 2N/A * The PSP is now in the pending state, where it will sit until 2N/A * the last connection terminates or the app uses the same 2N/A * ServiceID again, which will reactivate it.