X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FSocketSource.ct;h=e2256615beb51967c7cecad0a5ef87463ae1d4c6;hb=bd9f9d3fd6fbcff0112a7bf48ab9284da9576b11;hp=7ea550697552e457d3b4acd7c86bf0506cd985ca;hpb=42a8e0da20196d7e74d701c1fb448a9946014686;p=senf.git diff --git a/PPI/SocketSource.ct b/PPI/SocketSource.ct index 7ea5506..e225661 100644 --- a/PPI/SocketSource.ct +++ b/PPI/SocketSource.ct @@ -46,16 +46,21 @@ prefix_ Packet senf::ppi::DgramReader::operator()(Handle handle) template prefix_ senf::ppi::module::ActiveSocketSource::ActiveSocketSource() -{} +{ + registerEvent( event_, &ActiveSocketSource::read ); + route(event_, output); +} template prefix_ senf::ppi::module::ActiveSocketSource::ActiveSocketSource(Reader reader) : reader_(reader) -{} +{ + registerEvent( event_, &ActiveSocketSource::read ); + route(event_, output); +} template -prefix_ senf::ppi::module::ActiveSocketSource:: -ActiveSocketSource(Handle handle) +prefix_ senf::ppi::module::ActiveSocketSource::ActiveSocketSource(Handle handle) : handle_(handle), event_(handle_, IOEvent::Read) { registerEvent( event_, &ActiveSocketSource::read );