Fixed whitespace in all files (no tabs)
[senf.git] / Socket / GenericAddressingPolicy.hh
index cc5c527..7eeed12 100644 (file)
@@ -1,6 +1,6 @@
 // $Id$
 //
-// Copyright (C) 2006 
+// Copyright (C) 2006
 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
 // Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
 //     Stefan Bund <stefan.bund@fokus.fraunhofer.de>
@@ -43,7 +43,7 @@ namespace senf {
 
     /** \brief Non-template implemenatation class of GenericAddressingPolicy template
 
-       \internal
+        \internal
      */
     struct GenericAddressingPolicy_Base
     {
@@ -54,28 +54,28 @@ namespace senf {
     };
 
     /** \brief Template for generic AddressingPolicy implementation based on the BSD socket API
-       
-       This template provides an implementation template to implement generic addressing policy
-       classes which rely on the standard BSD socket API for their implementation
-       (connect/bind/getsockname/getpeername).
-
-       The \a Address template parameter specifies the address type of the addressing policy. This
-       type must have two members: \c sockaddr_p() and \c sockaddr_len(). The first must return a
-       <tt>struct sockaddr *</tt> to the address, the second must return the size of the address in
-       bytes. The pointer returned by \c sockaddr_p() must be non-const if called on a non-const
-       address. <em>The underlying socket address stored at that pointer might be
-       modified</em>.
-
-       This template class is inherited into addressing policy classes via private
-       inheritance. Then the members supported by the respective addressing policy are made
-       available via \c using declarations (See INet4AddressingPolicy for an Example).
-
-       \idea We could explicitly provide open_sockaddr_p() and close_sockaddr_p()
-       members. sockaddr_p could always return a const * whereas open_sockaddr_p should return a
-       non-const pointer. The close operation would then explicitly signal, that the new value
-       should be incorporated into the class. With our current implementation, the close member
-       would be a no-op, however this ould free us from using the sockaddr values as a direct
-       sotrage representation of the address.
+
+        This template provides an implementation template to implement generic addressing policy
+        classes which rely on the standard BSD socket API for their implementation
+        (connect/bind/getsockname/getpeername).
+
+        The \a Address template parameter specifies the address type of the addressing policy. This
+        type must have two members: \c sockaddr_p() and \c sockaddr_len(). The first must return a
+        <tt>struct sockaddr *</tt> to the address, the second must return the size of the address in
+        bytes. The pointer returned by \c sockaddr_p() must be non-const if called on a non-const
+        address. <em>The underlying socket address stored at that pointer might be
+        modified</em>.
+
+        This template class is inherited into addressing policy classes via private
+        inheritance. Then the members supported by the respective addressing policy are made
+        available via \c using declarations (See INet4AddressingPolicy for an Example).
+
+        \idea We could explicitly provide open_sockaddr_p() and close_sockaddr_p()
+        members. sockaddr_p could always return a const * whereas open_sockaddr_p should return a
+        non-const pointer. The close operation would then explicitly signal, that the new value
+        should be incorporated into the class. With our current implementation, the close member
+        would be a no-op, however this ould free us from using the sockaddr values as a direct
+        sotrage representation of the address.
      */
     template <class Address>
     struct GenericAddressingPolicy
@@ -86,29 +86,29 @@ namespace senf {
                          typename IfCommunicationPolicyIs<Policy,ConnectedCommunicationPolicy>::type * = 0);
                                         ///< Return address of remote peer on connected sockets
                                         /**< This member is only available if the socket handles
-                                            communication policy is ConnectedCommunicationPolicy.
+                                             communication policy is ConnectedCommunicationPolicy.
 
-                                            \param[in] handle socket handle to get peer address of
-                                            \param[out] addr address of remote peer */
+                                             \param[in] handle socket handle to get peer address of
+                                             \param[out] addr address of remote peer */
         static void local(FileHandle handle, Address & addr);
                                         ///< Return local of socket
                                         /**< \param[in] handle socket handle to check
-                                            \param[out] addr local socket address */
+                                             \param[out] addr local socket address */
 
         template <class Policy>
         static void connect(SocketHandle<Policy> handle, Address const & addr,
                             typename IfCommunicationPolicyIs<Policy,ConnectedCommunicationPolicy>::type * = 0);
                                         ///< Connect to remote host
                                         /**< This member is only available if the socket handles
-                                            communication policy is ConnectedCommunicationPolicy.
+                                             communication policy is ConnectedCommunicationPolicy.
 
-                                            \param[in] handle socket handle
-                                            \param[in] address address of remote peer to connect 
-                                                to */
+                                             \param[in] handle socket handle
+                                             \param[in] address address of remote peer to connect
+                                                 to */
         static void bind(FileHandle handle, Address const & addr);
                                         ///< Set local socket address
                                         /**< \param[in] handle socket handle
-                                            \param[in] addr local socket address */
+                                             \param[in] addr local socket address */
     };
 
     /// @}
@@ -125,6 +125,8 @@ namespace senf {
 \f
 // Local Variables:
 // mode: c++
-// c-file-style: "senf"
 // fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
 // End: