From c17a029aa866ffbe55021a12cd2ab9d9d8c0c171 Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Thu, 9 May 2024 16:09:00 +0200 Subject: [PATCH] Refs #20972. Doxygen. Signed-off-by: Miguel Company --- src/cpp/rtps/transport/TCPChannelResource.h | 6 ++++++ src/cpp/rtps/transport/UDPTransportInterface.h | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/src/cpp/rtps/transport/TCPChannelResource.h b/src/cpp/rtps/transport/TCPChannelResource.h index d625ac5c949..589ae6221e7 100644 --- a/src/cpp/rtps/transport/TCPChannelResource.h +++ b/src/cpp/rtps/transport/TCPChannelResource.h @@ -234,6 +234,12 @@ class TCPChannelResource : public ChannelResource const size_t& msg_size, const asio::ip::tcp::socket::native_handle_type& socket_native_handle); + /** + * @brief Set descriptor options on a socket. + * + * @param socket Socket on which to set the options. + * @param options Descriptor with the options to set. + */ static void set_socket_options( asio::basic_socket& socket, const TCPTransportDescriptor* options); diff --git a/src/cpp/rtps/transport/UDPTransportInterface.h b/src/cpp/rtps/transport/UDPTransportInterface.h index 6f3ab7c4d1d..52b2ba16720 100644 --- a/src/cpp/rtps/transport/UDPTransportInterface.h +++ b/src/cpp/rtps/transport/UDPTransportInterface.h @@ -308,7 +308,16 @@ class UDPTransportInterface : public TransportInterface private: + /** + * @brief Prepare transport configuration regarding send buffer size. + * @return true if a send buffer size greater than max message size could be set, false otherwise. + */ bool configure_send_buffer_size(); + + /** + * @brief Prepare transport configuration regarding receive buffer size. + * @return true if a receive buffer size greater than max message size could be set, false otherwise. + */ bool configure_receive_buffer_size(); };