.. _program_listing_file_BackendLibfabric_Sender.hpp: Program Listing for File Sender.hpp =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``BackendLibfabric/Sender.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef NETIO3BACKEND_BACKENDLIBFABRIC_SENDER_HPP #define NETIO3BACKEND_BACKENDLIBFABRIC_SENDER_HPP #include #include #include "ActiveEndpoint.hpp" #include "netio3-backend/Netio3Backend.hpp" namespace netio3::libfabric { class Sender { public: explicit Sender(ActiveEndpoint& endpoint) : m_endpoint(endpoint) {} [[nodiscard]] NetioStatus send_data(iovec data, fid_mr* mr, std::uint64_t key, fi_addr_t addr) const { ZoneScoped; return send_data(std::span{&data, 1}, std::span{&mr, 1}, key, addr); } [[nodiscard]] NetioStatus send_data(std::span data, std::span mrs, std::uint64_t key, fi_addr_t addr) const; private: std::reference_wrapper m_endpoint; }; } // namespace netio3::libfabric #endif // NETIO3BACKEND_BACKENDLIBFABRIC_SENDER_HPP