Same header and footer for all files. Header includes copyright +
[metaproxy-moved-to-github.git] / src / ex_filter_frontend_net.cpp
index 41813af..76264f9 100644 (file)
@@ -1,3 +1,8 @@
+/* $Id: ex_filter_frontend_net.cpp,v 1.7 2005-10-15 14:09:09 adam Exp $
+   Copyright (c) 2005, Index Data.
+
+%LICENSE%
+ */
 
 #include <cstdlib>
 #include <iostream>
@@ -15,15 +20,15 @@ namespace po = boost::program_options;
 #include "session.hpp"
 #include "package.hpp"
 
-class FilterInit: public yp2::Filter {
+class FilterInit: public yp2::filter::Base {
 public:
     void process(yp2::Package & package) const {
-
+        
         if (package.session().is_closed())
         {
             // std::cout << "Got Close.\n";
         }
-       
+        
         Z_GDU *gdu = package.request().get();
         if (gdu)
         {
@@ -96,7 +101,7 @@ int main(int argc, char **argv)
            yp2::RouterChain router;
 
             // put frontend filter in router
-            yp2::FilterFrontendNet filter_front;
+            yp2::filter::FrontendNet filter_front;
             filter_front.ports() = ports;
 
             // 0=no time, >0 timeout in seconds
@@ -106,7 +111,7 @@ int main(int argc, char **argv)
            router.rule(filter_front);
 
             // put log filter in router
-            yp2::FilterLog filter_log;
+            yp2::filter::Log filter_log;
             router.rule(filter_log);
 
             // put backend init filter in router
@@ -131,6 +136,7 @@ int main(int argc, char **argv)
  * Local variables:
  * c-basic-offset: 4
  * indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
  * End:
  * vim: shiftwidth=4 tabstop=8 expandtab
  */