10 #include "session.hpp"
20 std::string address; // UNIX+TCPIP
21 int port; // TCPIP only
23 Origin() : type(API) {};
29 Package(yp2::Session &session, yp2::Origin &origin)
30 : m_session(session), m_origin(origin),
31 m_filter(0), m_router(0), m_data(0) {}
33 /// send Package to it's next Filter defined in Router
35 m_filter = m_router->move(m_filter, this);
37 return m_filter->process(*this);
42 /// access session - left val in assignment
43 yp2::Session & session() {
47 /// get function - right val in assignment
48 unsigned int data() const {
52 /// set function - left val in assignment
53 unsigned int & data() {
57 /// set function - can be chained
58 Package & data(const unsigned int & data){
64 /// get function - right val in assignment
65 Origin origin() const {
69 /// set function - left val in assignment
74 /// set function - can be chained
75 Package & origin(const Origin & origin){
80 Package & router(const Router &router){
90 const Filter *m_filter;
91 const Router *m_router;
94 yazpp_1::GDU m_request_gdu;
95 yazpp_1::GDU m_response_gdu;
103 * indent-tabs-mode: nil
105 * vim: shiftwidth=4 tabstop=8 expandtab