X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FFramingPolicy.hh;h=5359c2710e5496e9fa918e2748202ca48473fc90;hb=fd3a0e8ac95d1158e9ea661ddf9187b67c70169f;hp=97a440c263bc571ffc9d2a28d5d571e459a1d359;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Socket/FramingPolicy.hh b/Socket/FramingPolicy.hh index 97a440c..5359c27 100644 --- a/Socket/FramingPolicy.hh +++ b/Socket/FramingPolicy.hh @@ -1,9 +1,9 @@ // $Id$ // -// Copyright (C) 2006 -// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) -// Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Copyright (C) 2006 +// 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 @@ -20,8 +20,12 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef HH_FramingPolicy_ -#define HH_FramingPolicy_ 1 +/** \file + \brief FramingPolicy public header + */ + +#ifndef HH_SENF_Socket_FramingPolicy_ +#define HH_SENF_Socket_FramingPolicy_ 1 // Custom includes #include "SocketPolicy.hh" @@ -31,13 +35,33 @@ namespace senf { + /// \addtogroup policy_impl_group + /// @{ + + /** \brief FramingPolicy for stream oriented sockets + This policy does not explicitly modify the SocketHAndle + API. It however affects the semantics of the read and write + operations. On a stream oriented socket, read() and write() + operations may be combined, the boundary between separate + write() calls will be lost on the receiving side. + */ struct StreamFramingPolicy : public FramingPolicyBase {}; + /** \brief FramingPolicy for datagram oriented sockets + + This policy does not explicitly modify the SocketHAndle + API. It however affects the semantics of the read and write + operations. On a datagram socket, each read() or write() call + we read or write a single datagram. Datagram boundaries are + kept intact accross the network. + */ struct DatagramFramingPolicy : public FramingPolicyBase {}; + /// @} + } ///////////////////////////////hh.e//////////////////////////////////////// @@ -49,5 +73,10 @@ namespace senf { // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" +// comment-column: 40 // End: