CPI-C Reference


Naming Conventions--Calls, Characteristics, Variables, and Values

Pseudonyms for the actual calls, characteristics, variables, states, and characteristic values comprising CPI Communications are used throughout this book to enhance understanding and readability.

Where possible, underscores (_) and complete names are used in the pseudonyms. Any phrase in the book that contains an underscore is a pseudonym. For example, Send_Data is the pseudonym for the program call CMSEND, which is used by a program to send information to its conversation partner.

This book uses the following conventions to aid in distinguishing between the four types of pseudonyms:

As a complete example of how pseudonyms are used in this book, suppose a program uses the Set_Return_Control call to set the conversation characteristic of return_control to a value of CM_IMMEDIATE.

Notes:

  1. Pseudonym value names are not actually passed to CPI Communications as a string of characters. Instead, the pseudonyms represent integer values that are passed on the program calls. The pseudonym value names are used to aid readability of the text. Similarly, programs should use translates and equates (depending on the language) to aid the readability of the code. In the above example, for instance, a program equate could be used to define CM_IMMEDIATE as meaning an integer value of 1. The actual program code would then read as described above--namely, that return_control is replaced with CM_IMMEDIATE. The end result, however, is that an integer value of 1 is placed into the variable.

  2. Section "Programming Language Considerations" in Set_Return_Control (CMSRC) provides information on system files that can be used to establish pseudonyms for a program.


[ Top of Page | Previous Page | Next Page | Table of Contents ]