Moving ThreadPoolSocketObserver and IThreadPoolMsg to yp2 namespace
[metaproxy-moved-to-github.git] / src / package.hpp
index d49301c..808a23b 100644 (file)
@@ -38,12 +38,10 @@ namespace yp2 {
         }
 
         /// send Package to it's next Filter defined in Router
-        Package & move() {
+        void move() {
             m_filter = m_router->move(m_filter, this);
             if (m_filter)
-                return m_filter->process(*this);
-            else
-                return *this;
+                m_filter->process(*this);
         }
         
         /// access session - left val in assignment
@@ -98,6 +96,11 @@ namespace yp2 {
             return m_response_gdu;
         }
                 
+        /// get function - right val in assignment
+        Session session() const {
+            return m_session;
+        }
+        
     private:
         Session m_session;
         Origin m_origin;