Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Return values [Table of Contents] Usage

Open Client Client-Library/C Reference Manual

[-] Chapter 3 Routines
[-] ct_config
[-] Examples

Examples

Example 1

        /* Set the input/output type to asynchronous */
         CS_INT        propvalue;
         if (retcode == CS_SUCCEED)
         {
             propvalue = CS_ASYNC_IO;
             retcode = ct_config(*context, CS_SET, CS_NETIO,
                 (CS_VOID *)&propvalue, CS_UNUSED, NULL);
             if (retcode != CS_SUCCEED)
             {
                 ex_error("ex_init: ct_config(netio) failed");
             }
         }

This code excerpt is based on code in the exutils.c example program.


Return values [Table of Contents] Usage