From: tho Date: Tue, 13 Nov 2007 13:19:13 +0000 (+0000) Subject: some doc fixing X-Git-Url: http://g0dil.de/git?p=senf.git;a=commitdiff_plain;h=49af16667e485eb3be706efaf33b5a0cd085c6c4 some doc fixing git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@510 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Examples/Sniffer/Doxyfile b/Examples/Sniffer/Doxyfile index 1c41e35..da7fce1 100644 --- a/Examples/Sniffer/Doxyfile +++ b/Examples/Sniffer/Doxyfile @@ -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 diff --git a/Examples/Sniffer/Mainpage.dox b/Examples/Sniffer/Mainpage.dox index ebd3c21..7d443a4 100644 --- a/Examples/Sniffer/Mainpage.dox +++ b/Examples/Sniffer/Mainpage.dox @@ -175,8 +175,8 @@ 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 libSocket API reference \n libPackets API reference \n libUtils API reference diff --git a/Socket/Protocols/INet/UDPSocketHandle.hh b/Socket/Protocols/INet/UDPSocketHandle.hh index 3a85354..d114c3d 100644 --- a/Socket/Protocols/INet/UDPSocketHandle.hh +++ b/Socket/Protocols/INet/UDPSocketHandle.hh @@ -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 */ diff --git a/Socket/Protocols/UN/UNDatagramSocketHandle.hh b/Socket/Protocols/UN/UNDatagramSocketHandle.hh index 20c9977..a8d7094 100644 --- a/Socket/Protocols/UN/UNDatagramSocketHandle.hh +++ b/Socket/Protocols/UN/UNDatagramSocketHandle.hh @@ -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 */ diff --git a/Socket/Protocols/UN/UNDatagramSocketHandle.test.cc b/Socket/Protocols/UN/UNDatagramSocketHandle.test.cc index 6eb4460..b39fd0a 100644 --- a/Socket/Protocols/UN/UNDatagramSocketHandle.test.cc +++ b/Socket/Protocols/UN/UNDatagramSocketHandle.test.cc @@ -35,23 +35,24 @@ 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"); }