X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketPolicy.test.hh;h=8dd46d1086582a8eae1c8704889ecb27ac4f291b;hb=532240d72e09e19e57fac9bb55c2560b9c9e5b97;hp=cc726f6d3e132bd9a1df2f3b88f89f139726e0c1;hpb=f73fa16ed5abdce272ac77f8b8b9ef2b9922c266;p=senf.git diff --git a/Socket/SocketPolicy.test.hh b/Socket/SocketPolicy.test.hh index cc726f6..8dd46d1 100644 --- a/Socket/SocketPolicy.test.hh +++ b/Socket/SocketPolicy.test.hh @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund // // This program is free software; you can redistribute it and/or modify @@ -20,8 +20,8 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef HH_SocketPolicy_test_ -#define HH_SocketPolicy_test_ 1 +#ifndef HH_SENF_Socket_SocketPolicy_test_ +#define HH_SENF_Socket_SocketPolicy_test_ 1 // Custom includes #include "SocketPolicy.hh" @@ -31,7 +31,6 @@ ///////////////////////////////hh.p//////////////////////////////////////// namespace senf { - namespace test { struct SomeAddressingPolicy : public senf::AddressingPolicyBase @@ -94,26 +93,12 @@ namespace test { } }; - struct SomeBufferingPolicy : public senf::BufferingPolicyBase - { - static unsigned rcvbuf(FileHandle handle) - { return 0; } - static unsigned rcvbuf(FileHandle handle, unsigned size) - { return 0; } - - static unsigned sndbuf(FileHandle handle) - { return 0; } - static unsigned sndbuf(FileHandle handle, unsigned size) - { return 0; } - }; - typedef senf::MakeSocketPolicy< SomeAddressingPolicy, SomeFramingPolicy, SomeCommunicationPolicy, SomeReadPolicy, - SomeWritePolicy, - SomeBufferingPolicy + SomeWritePolicy >::policy SomeSocketPolicy; }}