Studio:AutoScript Messages

From STRIDE Wiki
Revision as of 20:35, 9 July 2008 by Chrisj (talk | contribs)
Jump to navigation Jump to search

There are several types of messaging performed by STRIDE. These include:

Broadcast Messaging

Broadcast messaging is used to have a message owner broadcast messages. In the most general of cases a message user will subscribe to a message for a time. After a message user has subscribed to a message, the message will enqueue message events to the message user's script's event queue.

will receive Events 

1. A Message User calls Subscribe() to register that it is interested in receiving message events from a given message. 2. When the Message Owner calls Broadcast(), a message event is sent to all Subscribers of the message. The message event received by the Message User is enqueued to its script's event queue. The Message User may then evaluate the messages it has received by making calls to WaitForEvent(). 3. When a Message User no longer wishes to receive message events from a given message, it will call Unsubscribe() to unregister its interest in receiving events.


One-Way Command Messaging

One-Way Response Messaging

Two-Way Command/Response Messaging