.. _program_listing_file_BackendLibfabric_SharedReceiveContext.hpp: Program Listing for File SharedReceiveContext.hpp ================================================= |exhale_lsh| :ref:`Return to documentation for file ` (``BackendLibfabric/SharedReceiveContext.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef NETIO3BACKEND_BACKENDLIBFABRIC_SHAREDRECEIVECONTEXT_HPP #define NETIO3BACKEND_BACKENDLIBFABRIC_SHAREDRECEIVECONTEXT_HPP #include #include #include "Helpers.hpp" namespace netio3::libfabric { class SharedReceiveContext { public: SharedReceiveContext(fid_domain* domain, const fi_info* info); [[nodiscard]] const fid_ep* get() const { return m_srx_ctx.get(); } [[nodiscard]] fid_ep* get() { return m_srx_ctx.get(); } private: FiCloseUniquePtr m_srx_ctx{nullptr}; }; } // namespace netio3::libfabric #endif // NETIO3BACKEND_BACKENDLIBFABRIC_SHAREDRECEIVECONTEXT_HPP