// $Id$
//
-// Copyright (C) 2007
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
#include "SocketSink.hh"
#include "Setup.hh"
-#include <boost/test/auto_unit_test.hpp>
+#include "../Utils/auto_unit_test.hh"
#include <boost/test/test_tools.hpp>
#define prefix_
namespace {
void timeout() {
- senf::Scheduler::instance().terminate();
+ senf::scheduler::terminate();
}
}
senf::UDPv4ClientSocketHandle inputSocket;
inputSocket.bind(senf::INet4SocketAddress("localhost:44344"));
- senf::Scheduler::instance().timeout(
- senf::ClockService::now() + senf::ClockService::milliseconds(100), &timeout);
+ senf::scheduler::TimerEvent timer (
+ "activeSocketSink test timer", &timeout,
+ senf::ClockService::now() + senf::ClockService::milliseconds(100));
source.submit(p);
senf::ppi::run();