X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FBufferingPolicy.hh;h=02d61425929e5ab2c15cf5749781583e240b53be;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=1c63523f4a3df97e603f9961a6b15b02b965757b;hpb=a4911c1fd3f53dc2a7bda6c1d2b00bdc4b864cff;p=senf.git diff --git a/Socket/BufferingPolicy.hh b/Socket/BufferingPolicy.hh index 1c63523..02d6142 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 @@ -38,32 +38,42 @@ namespace senf { /// \addtogroup policy_impl_group /// @{ - + + /** \brief BufferingPolicy for non-buffered sockets + + This is different from UndefinedBufferingPolicy (which is the + same as BufferingPolicyBase). This policy class defines the + buffering policy -- it explicitly states, that the socket does not + support buffering. + */ + struct NoBufferingPolicy : public BufferingPolicyBase + {}; + /** \brief BufferingPolicy implementing standard socket buffering - This policy class implements standard BSD socket buffering. + This policy class implements standard BSD socket buffering. - \todo Shouldn't this be dependent on Read / WritePolicy ? + \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 */ + /**< \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 */ + \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 */ + \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 */ + \param[in] size new send buffer size */ }; /// @} @@ -80,6 +90,10 @@ namespace senf { // Local Variables: // mode: c++ -// c-file-style: "senf" // fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: