X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FSocketPolicy.test.hh;h=4740f6e0b744173c75bddc1ac735bcb665151811;hb=6f50bf49e282c0528f51faa0a245bbfa2b867399;hp=653bae5848a777fedace64cfafaf4d27c9fe2249;hpb=85ab07d100a382467a42e19d741d403a7a96c951;p=senf.git diff --git a/Socket/SocketPolicy.test.hh b/Socket/SocketPolicy.test.hh index 653bae5..4740f6e 100644 --- a/Socket/SocketPolicy.test.hh +++ b/Socket/SocketPolicy.test.hh @@ -1,9 +1,9 @@ // $Id$ // // Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// 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 // it under the terms of the GNU General Public License as published by @@ -55,6 +55,8 @@ namespace test { { static int accept(FileHandle handle, unsigned & addr) { addr = 3; return -1; } + static int accept(FileHandle handle) + { return -1; } }; struct SomeReadPolicy : public senf::ReadPolicyBase @@ -92,26 +94,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; }} @@ -130,4 +118,6 @@ namespace test { // c-file-style: "senf" // indent-tabs-mode: nil // ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: