A simple example program

This section walks you through an example program that connects to a server, sends a query, processes the results, then exits. Most Client-Library applications exhibit a program structure similar to this.