Subscriber/Publisher

In this example, the server program implements a simple Publisher  interface and periodically sends Stock Quotes to its subscribers. The client program implements a Subscriber interface which receives Stock Quotes.


From this example, you will learn how to:

Directory Contents

Building this example

Typing make all (or nmake on Windows) in the subscrip subdirectory will cause the following executables to be built:

Running this example

To run the examples, first make sure that the VisiBroker Smart Agent (osagent executable) is running on your network. Then start the server using the command: Next, run one or more client programs on the same or on different machines: The client program should periodically display Stock Quotes received. 


Return to the top-level examples page.