An example of how to use the Async::Timer class
#include <iostream>
using namespace std;
class MyClass :
public sigc::trackable
{
public:
{
}
{
}
private:
{
{
Application::app().quit();
}
cout <<
"Timer expired " <<
count <<
"...\n";
}
};
{
}
The core class for writing asyncronous cpp applications.
Contains a single shot or periodic timer that emits a signal on timeout.
An application class for writing non GUI applications.
void exec(void)
Execute the application main loop.
void connect(const std::string &remote_host, uint16_t remote_port)
Connect to the remote host.
A class for creating a TCP client connection.
A class that produces timer events.
Namespace for the asynchronous programming classes.