1. Introduction

This document explains how to use the C/C++ client for AMPS. Use this document to learn how to install, configure, develop C and C++ applications that use AMPS.


Before reading this book, it is important to have a good understanding of the following topics:

  • Developing in C or C++. To be successful using this guide, you will need to possess a working knowledge of C or C++.
  • AMPS concepts. Before reading this book, you will need to understand the basic concepts of AMPS, such as topics, subscriptions, messages, and SOW. Consult the AMPS Users’ Guide to learn more about these topics before proceeding.

You will need an installed and running AMPS server to use the product as well. You can write and compile programs that use AMPS without a running server, but you will get the most out of this guide by running the programs against a working server.

C & C++ Support Matrix

This version of the AMPS C++ client supports the following operating systems and features:

  Linux x64 Windows x64 Solaris SPARC
Incredible performance X X X
Publish and subscribe X X X
State of the World (SOW) queries X X X
Topic and content filtering X X X
Atomic SOW query and subscribe X X X
Transaction log replay X X X
Historical SOW query X X X
Beautiful documentation X X X
HA: automatic failover X X  
HA: durable publish and subscribe X X  

Table 1.1: C++ client supported features

This version of the AMPS C++ client has been tested with the following compilers and versions. Other compilers or versions may work, but have not been tested by 60East:

  • Linux: gcc 4.8 or later (recommended), 4.6, or 4.4
  • Windows: Visual Studio versions under current mainstream support
  • Solaris: Oracle Solaris Studio 12.3