X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FIOEvent.cti;h=1b160e06a371231aabaaa5e9697206fbbe5eb0dd;hb=b89e3166f7680755683dccee5e48cb3a820185c0;hp=73c4fd88dae44950f4b8d31e1fde94405a2757d0;hpb=81ffa1c459b96dd44472bcef37e1e373934ee138;p=senf.git diff --git a/PPI/IOEvent.cti b/PPI/IOEvent.cti index 73c4fd8..1b160e0 100644 --- a/PPI/IOEvent.cti +++ b/PPI/IOEvent.cti @@ -1,8 +1,8 @@ // $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 // // This program is free software; you can redistribute it and/or modify @@ -26,6 +26,7 @@ //#include "IOEvent.ih" // Custom includes +#include #define prefix_ inline ///////////////////////////////cti.p/////////////////////////////////////// @@ -35,8 +36,10 @@ template prefix_ senf::ppi::IOEvent::IOEvent(Handle handle, unsigned events) - : fd_(retrieve_filehandle(handle)), events_(events) -{} + : fd_ (-1), event_ ("senf::ppi::IOEvent", boost::bind(&IOEvent::cb,this,_1)) +{ + set(handle,events); +} ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_