X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FSocketSink.cci;h=5acdcac1d18cd011cacf541548626457ad23e4ea;hb=63ae38a98da5740e0638c868cd1c3f2ac73d2eb2;hp=71a29efb6108e73d3a7d6132f550f7958776e84d;hpb=a479735a65e334af538b895f182f8efd36a541c5;p=senf.git diff --git a/PPI/SocketSink.cci b/PPI/SocketSink.cci index 71a29ef..5acdcac 100644 --- a/PPI/SocketSink.cci +++ b/PPI/SocketSink.cci @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2007 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) +// 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 @@ -24,18 +24,28 @@ \brief SocketSink inline non-template implementation */ // Custom includes +#include "SocketSink.hh" #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// /////////////////////////////////////////////////////////////////////////// -// senf::ppi::PacketSink +// senf::ppi::ConnectedDgramWriter -prefix_ void senf::ppi::PacketSink::operator()(Handle handle, Packet packet) +prefix_ void senf::ppi::ConnectedDgramWriter::operator()(Handle handle, Packet packet) { handle.write(packet.data()); } +/////////////////////////////////////////////////////////////////////////// +// senf::ppi::module::PassiveSocketSink + +template +prefix_ void senf::ppi::module::PassiveSocketSink::replaceHandle(Handle handle) +{ + handle_ = handle; +} + ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_