"$(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
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>
///< 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 */
///< 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 */
#include "../../../Socket/BufferingPolicy.hh"
#include "../../../Socket/ProtocolClientSocketHandle.hh"
-
-
//#include "UNDatagramSocketHandle.mpp"
///////////////////////////////hh.p////////////////////////////////////////
/** \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(),
///< 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 */
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");
}