X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FConnectors.cci;h=c61555cc3447520ee52d5dec8569e19aecb86afd;hb=7527fa188b41bd1e1ce1eb55777bfe360eb8373e;hp=1680902d765c99c23e98147b28f4c6602e0c9013;hpb=51044eb18f034c1a059ffe2fb109a422c1cbe251;p=senf.git diff --git a/PPI/Connectors.cci b/PPI/Connectors.cci index 1680902..c61555c 100644 --- a/PPI/Connectors.cci +++ b/PPI/Connectors.cci @@ -1,8 +1,8 @@ // $Id$ // -// Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// 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,7 @@ \brief Connectors inline non-template implementation */ // Custom includes +#include "../Utils/TypeInfo.hh" #include "../Utils/senfassert.hh" #define prefix_ inline @@ -59,13 +60,6 @@ prefix_ senf::ppi::connector::Connector::~Connector() peer_->peer_ = 0; } -prefix_ void senf::ppi::connector::Connector::connect(Connector & target) -{ - SENF_ASSERT( ! peer_ && ! target.peer_ ); - peer_ = & target; - target.peer_ = this; -} - //////////////////////////////////////// // private members @@ -135,8 +129,8 @@ prefix_ void senf::ppi::connector::PassiveConnector::notifyThrottle() if (!throttled()) { remoteThrottled_ = true; emitThrottle(); - } - else + } + else remoteThrottled_ = true; }