X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FBufferingPolicy.hh;h=90ba22732e9a540a3334cf78fe86d29671da678d;hb=9a988902090d28007578e93bffd809f6bd913155;hp=6eb705c30f535b3ef69ff20e4343dfe649512356;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Socket/BufferingPolicy.hh b/Socket/BufferingPolicy.hh index 6eb705c..90ba227 100644 --- a/Socket/BufferingPolicy.hh +++ b/Socket/BufferingPolicy.hh @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -20,6 +20,10 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +/** \file + \brief BufferingPolicy public header + */ + #ifndef HH_BufferingPolicy_ #define HH_BufferingPolicy_ 1 @@ -32,17 +36,38 @@ namespace senf { + /// \addtogroup policy_impl_group + /// @{ + + /** \brief BufferingPolicy implementing standard socket buffering - // TODO: Should this be dependent on Read / WritePolicy ? + This policy class implements standard BSD socket buffering. + + \todo Shouldn't this be dependent on Read / WritePolicy ? + */ struct SocketBufferingPolicy : public BufferingPolicyBase { static unsigned rcvbuf(FileHandle handle); + ///< Check receive buffer size + /**< \param[in] handle socket handle to check + \returns size of receive buffer in bytes */ static void rcvbuf(FileHandle handle, unsigned size); + ///< Change receive buffer size + /**< \param[in] handle socket handle + \param[in] size new receive buffer size */ static unsigned sndbuf(FileHandle handle); + ///< Check send buffer size + /**< \param[in] handle socket handle to check + \returns size of send buffer in bytes */ static void sndbuf(FileHandle handle, unsigned size); + ///< Change size of send buffer + /**< \param[in] handle socket handle + \param[in] size new send buffer size */ }; + /// @} + } ///////////////////////////////hh.e//////////////////////////////////////// @@ -55,5 +80,8 @@ namespace senf { // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: