From: Marcin Siodelski Date: Wed, 26 Sep 2012 10:49:27 +0000 (+0200) Subject: [2187] Improve doxygen comments. X-Git-Tag: trac2351_base~37^2~3^2^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02dd6ed0dd458e7627e06bcab6a5168354e929d6;p=thirdparty%2Fkea.git [2187] Improve doxygen comments. --- diff --git a/src/lib/dhcp/iface_mgr.h b/src/lib/dhcp/iface_mgr.h index ed7b0c2859..a7b9a789ff 100644 --- a/src/lib/dhcp/iface_mgr.h +++ b/src/lib/dhcp/iface_mgr.h @@ -372,6 +372,8 @@ public: /// /// @param pkt packet to be sent /// + /// @throw isc::BadValue if invalid interface specified in the packet. + /// @throw isc::dhcp::SocketWriteError if sendmsg() failed to send packet. /// @return true if sending was successful bool send(const Pkt6Ptr& pkt); @@ -383,6 +385,8 @@ public: /// /// @param pkt a packet to be sent /// + /// @throw isc::BadValue if invalid interface specified in the packet. + /// @throw isc::dhcp::SocketWriteError if sendmsg() failed to send packet. /// @return true if sending was successful bool send(const Pkt4Ptr& pkt); @@ -401,6 +405,7 @@ public: /// (in microseconds) /// /// @throw isc::BadValue if timeout_usec is greater than one million + /// @throw isc::dhcp::SocketReadError if error occured when receiving a packet. /// @return Pkt6 object representing received packet (or NULL) Pkt6Ptr receive6(uint32_t timeout_sec, uint32_t timeout_usec = 0); @@ -415,6 +420,7 @@ public: /// (in microseconds) /// /// @throw isc::BadValue if timeout_usec is greater than one million + /// @throw isc::dhcp::SocketReadError if error occured when receiving a packet. /// @return Pkt4 object representing received packet (or NULL) Pkt4Ptr receive4(uint32_t timeout_sec, uint32_t timeout_usec = 0); diff --git a/tests/tools/perfdhcp/test_control.h b/tests/tools/perfdhcp/test_control.h index 1b0b83c385..bdf165a2d4 100644 --- a/tests/tools/perfdhcp/test_control.h +++ b/tests/tools/perfdhcp/test_control.h @@ -550,8 +550,10 @@ protected: /// /// \param socket socket to be used to send the message. /// \param preload preload mode, packets not included in statistics. + /// /// \throw isc::Unexpected if failed to create new packet instance. /// \throw isc::BadValue if MAC address has invalid length. + /// \throw isc::dhcp::SocketWriteError if failed to send the packet. void sendDiscover4(const TestControlSocket& socket, const bool preload = false); @@ -567,7 +569,9 @@ protected: /// \param socket socket to be used to send the message. /// \param template_buf buffer holding template packet. /// \param preload preload mode, packets not included in statistics. + /// /// \throw isc::OutOfRange if randomization offset is out of bounds. + /// \throw isc::dhcp::SocketWriteError if failed to send the packet. void sendDiscover4(const TestControlSocket& socket, const std::vector& template_buf, const bool preload = false); @@ -581,9 +585,11 @@ protected: /// \param socket socket to be used to send message. /// \param discover_pkt4 DISCOVER packet sent. /// \param offer_pkt4 OFFER packet object. + /// /// \throw isc::Unexpected if unexpected error occured. /// \throw isc::InvalidOperation if Statistics Manager has not been /// initialized. + /// \throw isc::dhcp::SocketWriteError if failed to send the packet. void sendRequest4(const TestControlSocket& socket, const dhcp::Pkt4Ptr& discover_pkt4, const dhcp::Pkt4Ptr& offer_pkt4); @@ -598,6 +604,8 @@ protected: /// \param template_buf buffer holding template packet. /// \param discover_pkt4 DISCOVER packet sent. /// \param offer_pkt4 OFFER packet received. + /// + /// \throw isc::dhcp::SocketWriteError if failed to send the packet. void sendRequest4(const TestControlSocket& socket, const std::vector& template_buf, const dhcp::Pkt4Ptr& discover_pkt4, @@ -618,6 +626,8 @@ protected: /// \throw isc::Unexpected if unexpected error occured. /// \throw isc::InvalidOperation if Statistics Manager has not been /// initialized. + /// + /// \throw isc::dhcp::SocketWriteError if failed to send the packet. void sendRequest6(const TestControlSocket& socket, const dhcp::Pkt6Ptr& advertise_pkt6); @@ -630,6 +640,8 @@ protected: /// \param socket socket to be used to send message. /// \param template_buf packet template buffer. /// \param advertise_pkt6 ADVERTISE packet object. + /// + /// \throw isc::dhcp::SocketWriteError if failed to send the packet. void sendRequest6(const TestControlSocket& socket, const std::vector& template_buf, const dhcp::Pkt6Ptr& advertise_pkt6); @@ -648,7 +660,9 @@ protected: /// /// \param socket socket to be used to send the message. /// \param preload mode, packets not included in statistics. + /// /// \throw isc::Unexpected if failed to create new packet instance. + /// \throw isc::dhcp::SocketWriteError if failed to send the packet. void sendSolicit6(const TestControlSocket& socket, const bool preload = false); @@ -661,6 +675,8 @@ protected: /// \param socket socket to be used to send the message. /// \param template_buf packet template buffer. /// \param preload mode, packets not included in statistics. + /// + /// \throw isc::dhcp::SocketWriteError if failed to send the packet. void sendSolicit6(const TestControlSocket& socket, const std::vector& template_buf, const bool preload = false);