Skip to content

Latest commit

 

History

History

02_hello_world

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Tutorial #2 - Hello World

In this tutorial, you will learn to define your own actor by inheriting the Actor class

class HelloWorldActor : public Actor, public Actor::Callback
{
  registerCallback(*this);
}

Once registered, the event-loop managing this actor will asynchronously call HelloWorldActor::onCallback(). In the example, this method is defined as follows,

void onCallback(void)
{
  cout << "Hello World" << endl;
}