Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.6 KiB

  1. Inter-machine protocols and object definitions for Build Console 1.0
  2. UI-to-mtscript protocol:
  3. ------------------------
  4. There are 3 rules that must be followed when communicating from the UI to
  5. the mtscript engine, or from the master mtscript to slaves:
  6. 1) All info in the PublicData property is read-only on the UI.
  7. -- It is technically possible for the UI to modify data in the
  8. PublicData property, and there is no way to prevent this.
  9. However, the UI should never take advantage of this. The reason
  10. is that it is too easy for the UI to set data into that object
  11. which is an interface remoted across the wire, and if the UI
  12. goes away or is disconnected the data will no longer be available.
  13. 2) All commands and data sent from the UI to the mtscript engine are
  14. done using the Exec() method.
  15. -- This is an extension of rule #1.
  16. 3) ScriptNotify events fired by the mtscript engine should always
  17. satisfy one or more of the following conditions:
  18. a) The event is a notification indicating an interesting change
  19. has been made to data in the PublicData property. The
  20. parameters to the event may indicate more specifically what
  21. data changed.
  22. b) The event is a notification that is only meaningful at the time
  23. of the event.
  24. * Essentially, the event should never contain information that
  25. cannot be recovered later if no client is connected at the time
  26. the event is fired. This allows clients to connect and disconnect
  27. at any point. Events are not queued if no client is connected.