some doc fixing
tho [Tue, 13 Nov 2007 13:19:13 +0000 (13:19 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@510 270642c3-0616-0410-b53a-bc976706d245

Examples/Sniffer/Doxyfile
Examples/Sniffer/Mainpage.dox
Socket/Protocols/INet/UDPSocketHandle.hh
Socket/Protocols/UN/UNDatagramSocketHandle.hh
Socket/Protocols/UN/UNDatagramSocketHandle.test.cc

index 1c41e35..da7fce1 100644 (file)
@@ -7,4 +7,6 @@ TAGFILES = \
        "$(TOPDIR)/Scheduler/doc/Scheduler.tag" \
        "$(TOPDIR)/Packets/doc/Packets.tag" \
        "$(TOPDIR)/Socket/doc/Socket.tag" \
-       "$(TOPDIR)/Utils/doc/Utils.tag"
+       "$(TOPDIR)/Utils/doc/Utils.tag" \
+    "$(TOPDIR)/doc/overview.tag"
+       
\ No newline at end of file
index ebd3c21..7d443a4 100644 (file)
     This function is straight forward. The exception handling is the same as in \c loop_main(). The
     code then just creates a \c Sniffer instance and calls it's \c run() member.
 
-    \see \ref components \n
-         \ref build \n
+    \see \ref senf_components \n
+         \ref senf_build \n
          <a href="../../../../Socket/doc/html/index.html"><b>libSocket API reference</b></a> \n
          <a href="../../../../Packets/doc/html/index.html"><b>libPackets API reference</b></a> \n
          <a href="../../../../Utils/doc/html/index.html"><b>libUtils API reference</b></a>
index 3a85354..d114c3d 100644 (file)
@@ -101,7 +101,7 @@ namespace senf {
                                         ///< Create client socket and bind
                                         /**< Creates a new client socket and bind to the given
                                              address.
-                                             \param[in] local address to bind to */
+                                             \param[in] address local address to bind to */
                                         /**< \note This member is implicitly called from the
                                             ProtocolClientSocketHandle::ProtocolClientSocketHandle()
                                              constructor */
@@ -165,7 +165,7 @@ namespace senf {
                                         ///< Create client socket and connect
                                         /**< Creates a new client socket and bind to the given
                                              address.
-                                             \param[in] local address to bind to */
+                                             \param[in] address local address to bind to */
                                         /**< \note This member is implicitly called from the
                                              ProtocolClientSocketHandle::ProtocolClientSocketHandle()
                                              constructor */
index 20c9977..a8d7094 100644 (file)
@@ -34,8 +34,6 @@
 #include "../../../Socket/BufferingPolicy.hh"
 #include "../../../Socket/ProtocolClientSocketHandle.hh"
 
-
-
 //#include "UNDatagramSocketHandle.mpp"
 ///////////////////////////////hh.p////////////////////////////////////////
 
@@ -56,7 +54,7 @@ namespace senf {
     /** \brief Unix Domain Datagram Socket Protocol
 
         \par Socket Handle typedefs:
-            \ref UNDatagramSocketHandle (ProtocolClientSocketHandle)
+            \ref UNDatagramClientSocketHandle (ProtocolClientSocketHandle)
 
         \par Policy Interface: (to be checked)
             ClientSocketHandle::read(), ClientSocketHandle::readfrom(),
@@ -93,7 +91,7 @@ namespace senf {
                                         ///< Create client socket and bind
                                         /**< Creates a new client socket and bind to the given
                                              address.
-                                             \param[in] local address to bind to */
+                                             \param[in] address local address to bind to */
                                         /**< \note This member is implicitly called from the
                                              ProtocolClientSocketHandle::ProtocolClientSocketHandle()
                                              constructor */
index 6eb4460..b39fd0a 100644 (file)
 
 BOOST_AUTO_UNIT_TEST(unDatagramSocketHandle)
 {
-  std::string hallo = "Hallo Welt.";
-  std::string testS = ".socket-UNDatagramSocketHandle.test";
-  
-  unlink(testS.c_str()); 
+    std::string testString ("Hallo Welt.");
+    std::string socketPath (".socket-UNDatagramSocketHandle.test");
 
-  senf::UNSocketAddress addr (testS) ; 
-  senf::UNDatagramClientSocketHandle inputSocket(addr);
-  senf::UNDatagramClientSocketHandle outputSocket;
+    unlink(socketPath.c_str());
 
-  outputSocket.writeto( addr, hallo);
+    senf::UNSocketAddress addr (socketPath);
+    senf::UNDatagramClientSocketHandle inputSocket(addr);
+    senf::UNDatagramClientSocketHandle outputSocket;
 
-  BOOST_CHECK_EQUAL( inputSocket.read(), hallo);
-  outputSocket.close();
-  inputSocket.close();
-  
-  if( unlink(testS.c_str()) != 0) 
-       perror( "unlink failed");
+    outputSocket.writeto( addr, testString);
+
+    BOOST_CHECK_EQUAL( inputSocket.read(), testString);
+
+    outputSocket.close();
+    inputSocket.close();
+
+    if( unlink(socketPath.c_str()) != 0)
+        perror( "unlink failed");
 }