PPI: More unit tests
[senf.git] / PPI / Connectors.hh
index 6e01ca3..6d47b63 100644 (file)
@@ -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<ForwardingRoute*> 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: