The following components are needed to create and run applications with CCDS:
CCDS requires that the following environment variables are set:
CCDS data spaces are identified by a session name. A client that wishes to access a particular data space does so by calling the CCDS library function ccds_init with a session name as a parameter. During initialization CCDS searches for a /tmp/ccds_server_file_info.[session name] file. If this file exists, then a ccds_s server is already running on the machine for that session; otherwise, if the file is not found, a ccds_s server is spawned. A client can only access one data space at a time; however, two or more clients can run on the same machine and access different data spaces.
By default CCDS uses the /tmp path for permanent storage. For each session a /tmp/[session name] directory is created for that session. There is several ways to override the default value, listed here in order of selection:
Clients should call ccds_leave before terminating. This ensures that resources are freed and also lets the ccds_s servers terminate when no clients are accessing the data space.