// $Id$
//
-// Copyright (C) 2007
-// Fraunhofer Institute for Open Communication Systems (FOKUS)
-// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// 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
// Custom includes
#include "../Utils/senfassert.hh"
-#include <boost/bind.hpp>
//#include "IOEvent.mpp"
#define prefix_
prefix_ void senf::ppi::IOEvent::v_enable()
{
- Scheduler::instance().add(fd_, boost::bind(&IOEvent::cb,this,_1),
- Scheduler::EventId(events_));
+ event_.enable();
}
prefix_ void senf::ppi::IOEvent::v_disable()
{
- Scheduler::instance().remove(fd_, Scheduler::EventId(events_));
+ event_.disable();
}
-prefix_ void senf::ppi::IOEvent::cb(Scheduler::EventId event)
+prefix_ void senf::ppi::IOEvent::cb(int event)
{
- if ((event & ~events_) != 0) {
+ if ((event & ~event_.events()) != 0) {
if (event & Err)
throw ErrorException();
else if (event & Hup)