X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FSocketSource.cti;h=8bb2e7c17a5e801c053d0a8fb94bffe58202153a;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=cb0d8f0ccf0a4ca6b6a7f35755e20ded9074b3cf;hpb=28275a1a9075ae42dc29aaadc5bc78e6fa204e26;p=senf.git diff --git a/PPI/SocketSource.cti b/PPI/SocketSource.cti index cb0d8f0..8bb2e7c 100644 --- a/PPI/SocketSource.cti +++ b/PPI/SocketSource.cti @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer NETwork research (NET) +// 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 @@ -31,14 +31,28 @@ ///////////////////////////////cti.p/////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// -// senf::ppi::module::ActiveSocketSource +// senf::ppi::module::ActiveSocketSource -template -prefix_ Source & senf::ppi::module::ActiveSocketSource::source() +template +prefix_ Reader & senf::ppi::module::ActiveSocketSource::reader() { return reader_; } +template +prefix_ typename senf::ppi::module::ActiveSocketSource::Handle +senf::ppi::module::ActiveSocketSource::handle() +{ + return handle_; +} + +template +prefix_ void senf::ppi::module::ActiveSocketSource::handle(Handle handle) +{ + handle_ = handle; + event_.set(handle_, IOEvent::Read); +} + ///////////////////////////////cti.e/////////////////////////////////////// #undef prefix_