1
This simple stock quote server shows the use of the Event Service.
2
Clients subscribe to certain stock quotes.
3
Stock markets publish certain stock quotes at random intervals.
4
The interested clients receive the quotes.
6
MAKE SURE THAT THE EVENT SERVICE (es) HAS BEEN STARTED IN ADVANCE.
8
You may want to start multiple clients in different windows that
9
listen to different (or the same!) stock symbols.
10
If you start a second or third server, stock quotes will
11
be generated faster because there are multiple publishers!
13
Publishers don't know the interested parties and the listeners
14
don't know where the quotes come from.
16
The MClient program uses a pattern match for subscribing.
19
See also the countingcars example.
22
Note: the Server_noNS and Client_noNS show the use of the event server
23
without using the name server. You can start the Event server itself with the -N
24
parameter. This way you don't need to have a name server running.