Skip to content

Latest commit

 

History

History

tutorial

Simplx tutorials

In this directory you'll find the following tutorials, sorted by inceasing complexity:

  1. hello actor - Introduces the Framework by creating a new Actor
  2. hello world - Define your own simple Actor and a Callback
  3. printer actor starter - Create two actors that interact via message passing
  4. printer actor service - As example #3 but use the ServiceTag to register in the service index
  5. multi-callback - Use two different callback functions with a single Actor
  6. undelivered event management - why message passing/event delivery may fail and how to handle it.
  7. referenced and unreferenced actors - Introduces referenced actors and the same core invocation optimisation pattern.
  8. ping pong - Brings together earlier examples to create a two actor system with service discovery and two-way (asynchronous) communication.
  9. asynchronous exit - Demonstrates a controlled exit using requestDestroy()
  10. timer - Demonstrates a periodic timer using the timer_proxy class.
  11. asynchronous keyboard polling - Demonstrates the built-in keyboard actor, handling keypress events
  12. asynchronous tcp/http client & server - Demonstrates TCP and HTTP connector built-in actors
  13. cross thread bus - Demonstrates the integration of cooperative Actor with external services that are not so well-mannered. Can be used for integrating with thirdparty systems with their own eventloops and/or blocking services.

Each folder contains its own README file with further details.