-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Refs #20337: Buffer list in UDP sending function Signed-off-by: cferreiragonz <[email protected]> * Refs #20337: Buffer list in SHM sending function & Copy to shared buffer function Signed-off-by: cferreiragonz <[email protected]> * Refs #20337: Buffer list in TCP sending function Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Add new Buffer structure Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Add new lambda to send buffers into SenderResources Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on UDP transport Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on UDP test_transport Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on TCP Transport Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on TCPChannelResource Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on TCP tests Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on SHM transport & enable copying multiple buffers Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Refactor on SHM tests Signed-off-by: cferreiragonz <[email protected]> * Refs #20342: Fix mock tests after rebase Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on addSubmessageData/DataFrag Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Add constructor overloads to NetworkBuffers Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Add new attributes and methods to RTPSMessageGroup.h Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on add_data() Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on add_data_frag() Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on insert_submessage() Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on send() Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Minor changes in RTPSMessageGroup Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on RTPSMessageSenderInterface Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on ChaningTransport and ABI compatible send_lambda_ Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Refactor on Statistics module Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Add security support Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Minor fixes Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Doxygen Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Delete Sender's Resource deprecated API Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Fix Windows build Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Account for change of namespaces Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Add NetworkBuffer.cpp Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Revision minor changes Signed-off-by: cferreiragonz <[email protected]> * Refs #20352: Revision minor changes 2 Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Avoid stats_msg dynamic malloc Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Use vector instead of list Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Refactor RTPSMessageGroup to avoid Mallocs Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Use limited vector to avoid repeated mallocs Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Fix rebase Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Improve doxygen Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Add ResourceLV config into QoS Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: XML - New QoS added Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Get Payload in RTPSMessageGroup Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Uncrustify Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision - Use RLContainerConfig and minor changes Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision - Get payload after correct RTPSMsg creation Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision - Default values Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Update versions.md & CMakeLists Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Revision - Headers & versions.md Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Adjust payload_pool test Signed-off-by: cferreiragonz <[email protected]> * Refs #20291: Test comment Signed-off-by: cferreiragonz <[email protected]> --------- Signed-off-by: cferreiragonz <[email protected]>
- Loading branch information
1 parent
e0fdeb9
commit 371286c
Showing
89 changed files
with
1,199 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright 2024 Proyectos y Sistemas de Mantenimiento SL (eProsima). | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
/** | ||
* @file NetworkBuffer.hpp | ||
*/ | ||
|
||
#ifndef _FASTDDS_RTPS_NETWORK_NETWORKBUFFER_HPP | ||
#define _FASTDDS_RTPS_NETWORK_NETWORKBUFFER_HPP | ||
|
||
#include <cstdint> | ||
|
||
namespace asio { | ||
// Forward declaration of asio::const_buffer | ||
class const_buffer; | ||
} // namespace asio | ||
|
||
namespace eprosima { | ||
namespace fastdds { | ||
namespace rtps { | ||
|
||
/** | ||
* A slice of data to be sent to one or more transports. | ||
* An RTPS datagram is made up of headers and one or more NetworkBuffer instances. | ||
*/ | ||
struct NetworkBuffer final | ||
{ | ||
//! Pointer to the buffer where the data is stored. | ||
const void* buffer = nullptr; | ||
//! Number of bytes to use starting at @c buffer. | ||
uint32_t size = 0; | ||
|
||
NetworkBuffer() = default; | ||
|
||
NetworkBuffer( | ||
const void* ptr, | ||
uint32_t s) | ||
: buffer(ptr) | ||
, size(s) | ||
{ | ||
} | ||
|
||
//! Conversion operator to asio::const_buffer. | ||
operator asio::const_buffer() const; | ||
}; | ||
|
||
} // namespace rtps | ||
} // namespace fastdds | ||
} // namespace eprosima | ||
|
||
#endif // _FASTDDS_RTPS_NETWORK_NETWORKBUFFER_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.