7#include <rdma/fi_endpoint.h>
92 ::fid_pep*
raw() noexcept;
97 ::fid_pep const*
raw() const noexcept;
110 std::optional<std::shared_ptr<
EventQueue>> eq = std::nullopt);
RAII Wrapper around a libfabric endpoint (fi_ep).
RAII Wrapper around a libfabric event queue (fi_eq).
Type to represent an event entry from an EventQueue.
RAIII wrapper around a libfabric fabric object (fid_fabric).
RAII Wrapper around a libfabric passive endpoint (fid_pep).
std::shared_ptr< Fabric > _fabric
std::shared_ptr< EventQueue > eventQueue() const
Accessor for the associated event queue.
std::optional< std::shared_ptr< EventQueue > > _eq
RawFabricAddress localAddress()
Obtain the local fabric address for this passive endpoint.
void bind(std::shared_ptr< EventQueue > eq)
Bind the endpoint to an event queue.
::fid_pep * raw() noexcept
Access the underlying raw fid_pep pointer.
void operator=(PassiveEndpoint const &)=delete
static PassiveEndpoint create(std::shared_ptr< Fabric > fabric)
Allocate a new PassiveEndpoint associated with the given Fabric.
void reject(Event &entry)
Reject a connection request event.
PassiveEndpoint(PassiveEndpoint const &)=delete
void listen()
Put the passive endpoint into listening mode.
void close()
Releases all underlying resources. This is called from the destructor and the move-assignment operato...
Wrapper around a libfabric endpoint address.
static RawFabricAddress fromFid(::fid_t fid, FabricInfoView info)
Retrieve the fabric address of an endpoint by passing its fid.
::fi_info * raw() noexcept
Returns the raw fi_info object managed by this FabricInfo instance.