Go to the SVN repository for this file.
1 #ifndef CTOOLS___ASN_CONNECTION__H 2 #define CTOOLS___ASN_CONNECTION__H 4 /* $Id: asn_connection.h 53206 2012-02-29 20:10:03Z lavr $ 5 * =========================================================================== 8 * National Center for Biotechnology Information 10 * This software/database is a "United States Government Work" under the 11 * terms of the United States Copyright Act. It was written as part of 12 * the author's official duties as a United States Government employee and 13 * thus cannot be copyrighted. This software/database is freely available 14 * to the public for use. The National Library of Medicine and the U.S. 15 * Government have not placed any restriction on its use or reproduction. 17 * Although all reasonable efforts have been taken to ensure the accuracy 18 * and reliability of the software and data, the NLM and the U.S. 19 * Government do not and cannot warrant the performance or results that 20 * may be obtained by using this software or data. The NLM and the U.S. 21 * Government disclaim all warranties, express or implied, including 22 * warranties of performance, merchantability or fitness for any particular 25 * Please cite the author in any work or product based on this material. 27 * =========================================================================== 29 * Author: Denis Vakatov, Anton Lavrentiev 32 * Build C Toolkit ASN.1 streams on top of CONN (connection). 40 /** @addtogroup CToolsASNConn 63 /* Build a ASN.1 stream on top of a CONN (connection) handle. 64 * According to arguments, the stream is created for either reading or writing, 65 * and is capable to handle either binary or text ASN.1. 66 * Return ASN.1 stream pointer on success, or 0 on error. 67 * NOTE: Returned stream is valid while the underlying conn exists. After call 68 * to CONN_Close() the stream becomes invalid, and should not be used. 69 * Don't destroy the ASN.1 stream explicitly using AsnIoFree()! 78 /* Create a service connection using the service name, type, and connection 79 * parameters (use default connection parameters if 'net_info' is passed NULL). 80 * Create two ASN.1 streams based on the connection: one stream for input, and 81 * another one for output. Return pointers to the streams via the 'input' and 82 * 'output' arguments. No corresponding stream is created if either pointer is 84 * On success, return the created CONN handle; otherwise, return 0. 85 * NOTE: Both returned ASN.1 streams are valid as long as the connection handle 86 * exists; that is, after the connection handle is passed to CONN_Close() 87 * either pointer becomes invalid, and should not be used. 88 * Don't destroy the ASN.1 streams explicitly using AsnIoFree()! 91(
const char* service,
102 /* Equivalent of CreateAsnConn_ServiceEx with zeroes in last three arguments. 105(
const char* service,
121 #endif /* CTOOLS___ASN_CONNECTION__H */static CS_CONNECTION * conn
static SQLCHAR output[256]
unsigned int TSERV_Type
Bitwise OR of ESERV_Type[Special].
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4