Skip to main content

Examples

The AMPS C++ Client includes a set of example programs that provide simple demonstrations of client functionality.

The sample archive is available that includes a set of samples and a configuration file for AMPS: cpp-examples.zip

tip

Examples may need to be updated with the IP address or DNS name of the host running AMPS unless you are running both the samples and the AMPS server on the same system.

The archive includes a simple makefiles. It does not include the C++ client distribution, which can be downloaded from the 60East C++ developer page.

The samples archive includes samples such as:

Sample NameDemonstrates
amps_subscribe.cppSimple subscriber to an adhoc topic.
amps_publish.cppSimple publisher to an adhoc topic.
amps_publish_sow.cppSimple publisher targeting a topic in the State of the World
amps_query_sow.cppPoint in time query of a topic in the State of the World
amps_sow_and_subscribe.cppPoint in time query of and ongoing subscription to a topic in the State of the World
amps_sow_and_subscribe_with_oof.cppPoint in time query of and ongoing subscription to a topic in the State of the World. This subscription also requests out of focus notifications if a message is deleted or no longer matches the subscription
amps_publish_for_replay.cppSimple publisher targeting a topic in the transaction log
amps_subscribe_with_replay.cppSubscriber requesting a replay from the transaction log (bookmark subscribe)
amps_publish_queue.cppSimple publisher targeting a queue topic (which must also be in the transaction log)
amps_consume_queue.cppSubscriber that consumes from a queue
amps_fix_builder_publisher.cppSubscriber that uses the provided convenience class to create FIX messages
amps_fix_shredder_subscriber.cppSubscriber that uses the provided convenience class to parse FIX messages
amps_nvfix_builder_publisher.cppSubscriber that uses the provided convenience class to create NVFIX messages
amps_nvfix_shredder_subscriber.cppSubscriber that uses the provided convenience class to parse NVFIX messages
amps_publish_composite.cppPublisher that uses the provided convenience class to create a composite message
amps_subscribe_composite.cppSubscriber that uses the provided convenience class consume composite messages