Chapter 3: Functions

This chapter describes the functions that are included with your Open ClientConnect software. Table 3-1 has a detailed description of each function.

Table 3-1: Functions included with Open ClientConnect

Function and location

Description

ct_bind (see ct_bind)

Binds a returned column or parameter to a program variable.

ct_cancel (see ct_cancel)

Cancels a request or the results of a request.

ct_close (see ct_close)

Closes a server connection.

ct_cmd_alloc (see ct_cmd_alloc)

Allocates a command handle.

ct_cmd_drop (see ct_cmd_drop)

Deallocates a command handle.

ct_cmd_props (see ct_cmd_props)

Sets, retrieves, or clears information about the current result set.

ct_command (see ct_command)

Initiates a language request or RPC.

ct_con_alloc (see ct_con_alloc)

Allocates a connection handle.

ct_con_drop (see ct_con_drop)

Deallocates a connection handle.

ct_config (see ct_config)

Sets or retrieves context properties.

ct_connect (see ct_connect)

Connects to a server.

ct_con_props (see ct_con_props)

Sets or retrieves connection handle properties.

ct_describe (see ct_describe)

Returns a description of result data.

ct_diag (see ct_diag)

Manages in-line error handling.

ct_exit (see ct_exit)

Exits the programming interface.

ct_fetch (see ct_fetch)

Fetches result data.

ct_get_format (see ct_get_format)

Returns the server-defined format for a result column.

ct_init (see ct_init)

Initializes the programming interface.

ct_param (see ct_param)

Defines a command parameter.

ct_remote_pwd (see ct_remote_pwd)

Defines or clears passwords to be used for server-to-server connections.

ct_res_info (see ct_res_info)

Returns result set information.

ct_results (see ct_results)

Sets up result data to be processed.

ct_send (see ct_send)

Sends a request to the server.

cs_config (see cs_config)

Sets or retrieves global context properties.

cs_convert (see cs_convert)

Converts a data value from one datatype to another.

cs_ctx_alloc (see cs_ctx_alloc)

Allocates a context structure.

cs_ctx_drop (see cs_ctx_drop)

Deallocates a context structure.