From: dw6 Date: Tue, 15 Jan 2008 16:38:55 +0000 (+0000) Subject: add function to change packet to be cloned X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=a52ad78703fa2c4d2a90aff32dec3b5f756ee63c;p=senf.git add function to change packet to be cloned git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@607 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/PPI/CloneSource.cc b/PPI/CloneSource.cc index 828b6bc..76b4ddf 100644 --- a/PPI/CloneSource.cc +++ b/PPI/CloneSource.cc @@ -43,6 +43,10 @@ void senf::ppi::module::CloneSource::request() { output(packet_.clone()); } +void senf::ppi::module::CloneSource::replacePacket(senf::Packet packet) +{ + packet_ = packet; +} ///////////////////////////////cc.e//////////////////////////////////////// diff --git a/PPI/CloneSource.hh b/PPI/CloneSource.hh index 8f34b1f..eb79762 100644 --- a/PPI/CloneSource.hh +++ b/PPI/CloneSource.hh @@ -53,6 +53,7 @@ namespace module { connector::PassiveOutput output; CloneSource(senf::Packet packet); + void replacePacket(senf::Packet packet); private: void request();