A simple language program  Connecting to a server

Chapter 1: Open ClientConnect Processing

Setting up the Client-Library programming environment

cs_ctx_alloc allocates a context structure. A context structure is used to store configuration parameters that describe a particular “context,” or operating environment, for a set of connections.

Application properties that can be defined at the context level include the version of Client-Library being used, the login time-out value, and the maximum number of connections allowed within the context.

ct_init initializes your environment. It must be the first call in an application after cs_ctx_alloc.





Copyright © 2005. Sybase Inc. All rights reserved. Connecting to a server

View this book as PDF