Using Basic Communications Functions

Regardless of what programming interface you use, there are three basic steps when communicating with another program:

  1. Starting communications
  2. Sending and receiving data
  3. Ending communications.

You can think of program communications as being analogous to typical, everyday telephone communications. The following sections discuss the three basic steps and draw on the telephone analogy.