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 Name | Demonstrates |
---|---|
amps_subscribe.cpp | Simple subscriber to an adhoc topic. |
amps_publish.cpp | Simple publisher to an adhoc topic. |
amps_publish_sow.cpp | Simple publisher targeting a topic in the State of the World |
amps_query_sow.cpp | Point in time query of a topic in the State of the World |
amps_sow_and_subscribe.cpp | Point in time query of and ongoing subscription to a topic in the State of the World |
amps_sow_and_subscribe_with_oof.cpp | Point 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.cpp | Simple publisher targeting a topic in the transaction log |
amps_subscribe_with_replay.cpp | Subscriber requesting a replay from the transaction log (bookmark subscribe) |
amps_publish_queue.cpp | Simple publisher targeting a queue topic (which must also be in the transaction log) |
amps_consume_queue.cpp | Subscriber that consumes from a queue |
amps_fix_builder_publisher.cpp | Subscriber that uses the provided convenience class to create FIX messages |
amps_fix_shredder_subscriber.cpp | Subscriber that uses the provided convenience class to parse FIX messages |
amps_nvfix_builder_publisher.cpp | Subscriber that uses the provided convenience class to create NVFIX messages |
amps_nvfix_shredder_subscriber.cpp | Subscriber that uses the provided convenience class to parse NVFIX messages |
amps_publish_composite.cpp | Publisher that uses the provided convenience class to create a composite message |
amps_subscribe_composite.cpp | Subscriber that uses the provided convenience class consume composite messages |