namespace {
void timeout() {
- senf::Scheduler::instance().terminate();
+ senf::scheduler::terminate();
}
}
senf::UDPv4ClientSocketHandle outputSocket;
outputSocket.writeto(senf::INet4SocketAddress("localhost:44344"),data);
- senf::Scheduler::instance().timeout(
- senf::ClockService::now() + senf::ClockService::milliseconds(100), &timeout);
+ senf::scheduler::TimerEvent timer (
+ "socketSource test timer", &timeout,
+ senf::ClockService::now() + senf::ClockService::milliseconds(100));
senf::ppi::run();
BOOST_REQUIRE( ! sink.empty() );