PPI: Checkin of first compiling (yet not working) version
[senf.git] / Socket / SocketPolicy.test.hh
index cebba2d..065ec46 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2006 
+// Copyright (C) 2006
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
 //     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
 //#include "SocketPolicy.test.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
 
-namespace satcom {
-namespace lib {
+namespace senf {
+
 namespace test {
 
-    struct SomeAddressingPolicy : public satcom::lib::AddressingPolicyBase
+    struct SomeAddressingPolicy : public senf::AddressingPolicyBase
     {
         typedef unsigned Address;
-        
+
         static void peer(FileHandle handle, unsigned & addr)
             { addr=1; }
         static void local(FileHandle, unsigned & addr)
@@ -48,16 +48,16 @@ namespace test {
             {}
     };
 
-    struct SomeFramingPolicy : public satcom::lib::FramingPolicyBase
+    struct SomeFramingPolicy : public senf::FramingPolicyBase
     {};
 
-    struct SomeCommunicationPolicy : public satcom::lib::CommunicationPolicyBase
+    struct SomeCommunicationPolicy : public senf::CommunicationPolicyBase
     {
         static int accept(FileHandle handle, unsigned & addr)
             { addr = 3; return -1; }
     };
 
-    struct SomeReadPolicy : public satcom::lib::ReadPolicyBase
+    struct SomeReadPolicy : public senf::ReadPolicyBase
     {
         static unsigned const TEST_SIZE = 9;
 
@@ -75,7 +75,7 @@ namespace test {
             }
     };
 
-    struct SomeWritePolicy : public satcom::lib::WritePolicyBase
+    struct SomeWritePolicy : public senf::WritePolicyBase
     {
         static unsigned write(FileHandle handle, char const * buffer, unsigned size)
             {
@@ -91,8 +91,8 @@ namespace test {
                 return write(handle,buffer,size);
             }
     };
-    
-    struct SomeBufferingPolicy : public satcom::lib::BufferingPolicyBase
+
+    struct SomeBufferingPolicy : public senf::BufferingPolicyBase
     {
         static unsigned rcvbuf(FileHandle handle)
             { return 0; }
@@ -105,7 +105,7 @@ namespace test {
             { return 0; }
     };
 
-    typedef satcom::lib::MakeSocketPolicy<
+    typedef senf::MakeSocketPolicy<
         SomeAddressingPolicy,
         SomeFramingPolicy,
         SomeCommunicationPolicy,
@@ -114,7 +114,7 @@ namespace test {
         SomeBufferingPolicy
         >::policy SomeSocketPolicy;
 
-}}}
+}}
 
 ///////////////////////////////hh.e////////////////////////////////////////
 //#include "SocketPolicy.test.cci"
@@ -126,5 +126,10 @@ namespace test {
 \f
 // Local Variables:
 // mode: c++
-// c-file-style: "satcom"
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
+// compile-command: "scons -u test"
+// comment-column: 40
 // End: