Stock Quotation Sample Application

The source code for the StockDB sample application is included with the SDK. The following table shows the code samples used in StockDB. Each code sample is contained in a directory of the same name.

Application section
Description
Trans A message handler that parses the messages for stock quotations and stores the quotations in a database
Sdump A viewer application that enables a user to view the accumulated quotations in chart form or as individual quotations by way of a graphical user interface (GUI)
Stockdb A library of helper functions used by the message handler and the viewer

The router invokes the message handler when messages come in on a specified address and device.

StockDB demonstrates the separation of user interface and message handler, the use of the database to transfer data from the message to the application, and the general handler design.