X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FRoute.cci;h=0a3117ad84a03274f5527f08fc9259c7e90fc4bb;hb=fd3a0e8ac95d1158e9ea661ddf9187b67c70169f;hp=100b09cab63e58af1ee45d7656344b12a4c9cf95;hpb=81ffa1c459b96dd44472bcef37e1e373934ee138;p=senf.git diff --git a/PPI/Route.cci b/PPI/Route.cci index 100b09c..0a3117a 100644 --- a/PPI/Route.cci +++ b/PPI/Route.cci @@ -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 @@ -24,6 +24,8 @@ \brief Route inline non-template implementation */ // Custom includes +#include "Connectors.hh" +#include "Events.hh" #define prefix_ inline ///////////////////////////////cci.p/////////////////////////////////////// @@ -31,6 +33,9 @@ /////////////////////////////////////////////////////////////////////////// // senf::ppi::RouteBase +prefix_ senf::ppi::RouteBase::~RouteBase() +{} + //////////////////////////////////////// // protected members @@ -38,6 +43,46 @@ prefix_ senf::ppi::RouteBase::RouteBase(module::Module & module) : module_(&module) {} +/////////////////////////////////////////////////////////////////////////// +// senf::ppi::ForwardingRoute + +prefix_ bool senf::ppi::ForwardingRoute::autoThrottling() + const +{ + return autoThrottling_; +} + +prefix_ void senf::ppi::ForwardingRoute::autoThrottling(bool state) +{ + autoThrottling_ = state; +} + +prefix_ bool senf::ppi::ForwardingRoute::throttled() + const +{ + return v_throttled(); +} + +//////////////////////////////////////// +// protected members + +prefix_ senf::ppi::ForwardingRoute::ForwardingRoute(module::Module & module) + : RouteBase(module), autoThrottling_(true) +{} + +//////////////////////////////////////// +// private members + +prefix_ void senf::ppi::ForwardingRoute::notifyThrottle() +{ + v_notifyThrottle(); +} + +prefix_ void senf::ppi::ForwardingRoute::notifyUnthrottle() +{ + v_notifyUnthrottle(); +} + ///////////////////////////////cci.e/////////////////////////////////////// #undef prefix_