X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FConnectors.hh;h=6d47b637ef1702f506eef116495aeb46d4066293;hb=48bbf27e9e89d6eba4754fba65d70a15b115ac8b;hp=6e01ca36cfdbb1b6d78b247f4376f6186142c33b;hpb=f539f4271d470794a773a92bacd8ba086c9bc1cd;p=senf.git diff --git a/PPI/Connectors.hh b/PPI/Connectors.hh index 6e01ca3..6d47b63 100644 --- a/PPI/Connectors.hh +++ b/PPI/Connectors.hh @@ -144,14 +144,19 @@ namespace connector { // Called after unthrottling the connector virtual void v_unthrottleEvent(); + // called by ForwardingRoute to register a new route + void registerRoute(ForwardingRoute & route); + typedef detail::Callback<>::type Callback; Callback callback_; bool remoteThrottled_; bool nativeThrottled_; - friend class senf::ppi::detail::ForwardForwardingRouteImplementation; - friend class senf::ppi::detail::BackwardForwardingRouteImplementation; + typedef std::vector Routes; + Routes routes_; + + friend class senf::ppi::ForwardingRoute; }; /** \brief Active connector baseclass @@ -195,6 +200,8 @@ namespace connector { notifications. */ void onUnthrottle(); + bool throttled() const; + PassiveConnector & peer() const; protected: