69 virtual void transferGrain(std::uint64_t grainIndex, std::uint16_t startSlice, std::uint16_t endSlice) = 0;
92 std::uint16_t startSlice, std::uint16_t endSlice) = 0;
162 void transferGrain(std::uint64_t grainIndex, std::uint16_t startSlice, std::uint16_t endSlice);
167 std::uint16_t startSlice, std::uint16_t endSlice);
std::uintptr_t Id
An id type that can be used to reference this endpoint from completions and events.
A wrapper around Initiator implementations.
Initiator::MakeProgressResult makeProgressBlocking(std::chrono::steady_clock::duration)
Attempts to progress execution, including connection management and data operations.
void addTarget(TargetInfo const &targetInfo)
Add a target to the initiator.
~InitiatorWrapper()
Shut down the underlying initiator before it is destroyed.
void setup(mxlFabricsInitiatorConfig const &config, InitiatorSetupOptions const &options={})
Set up the initiator with the specified configuration.
static InitiatorWrapper * fromAPI(mxlFabricsInitiator api) noexcept
Convert an mxlFabricsInitiator API object to its underlying InitiatorWrapper.
void transferGrain(std::uint64_t grainIndex, std::uint16_t startSlice, std::uint16_t endSlice)
Transfer a grain to all targets.
void removeTarget(TargetInfo const &targetInfo)
Remove a target from the initiator.
mxlFabricsInitiator toAPI() noexcept
Convert this InitiatorWrapper to its API representation.
void transferGrainToTarget(Endpoint::Id targetId, std::uint64_t localIndex, std::uint64_t remoteIndex, std::uint64_t payloadOffset, std::uint16_t startSlice, std::uint16_t endSlice)
Transfer a grain to a specific target.
Initiator::MakeProgressResult makeProgress()
Attempts to progress execution, including connection management and data operations.
void destroyInner() noexcept
Shut down and destroy the underlying initiator. Errors are logged, because this runs in the destructo...
std::unique_ptr< Initiator > _inner
void transferSamples(std::uint64_t headIndex, std::size_t count)
Transfer samples to all targets.
Abstract base class for Initiator implementations.
virtual void transferSamples(std::uint64_t headIndex, std::size_t count)=0
Transfer samples to all targets.
virtual MakeProgressResult makeProgress()=0
Attempts to progress execution, including connection management and data operations.
virtual void addTarget(TargetInfo const &targetInfo)=0
Add a target to the initiator.
virtual void shutdown()=0
Shut down the initiator gracefully.
virtual ~Initiator()=default
virtual void transferGrainToTarget(Endpoint::Id targetId, std::uint64_t localIndex, std::uint64_t remoteIndex, std::uint64_t payloadOffset, std::uint16_t startSlice, std::uint16_t endSlice)=0
Transfer a grain to a specific target.
virtual MakeProgressResult makeProgressBlocking(std::chrono::steady_clock::duration)=0
Attempts to progress execution, including connection management and data operations.
std::variant< Ready, NotReady, Interrupted > MakeProgressResult
virtual void transferGrain(std::uint64_t grainIndex, std::uint16_t startSlice, std::uint16_t endSlice)=0
Transfer a grain to all targets.
virtual void removeTarget(TargetInfo const &targetInfo)=0
Remove a target from the initiator.
struct mxlFabricsInitiator_t * mxlFabricsInitiator
struct mxlFabricsInitiatorConfig_t mxlFabricsInitiatorConfig
std::size_t count(uuids::uuid id) const noexcept
Returns the number of writers registered for flow id 'id'.
Provider-independent tuning options for initiator setup.
std::optional< std::size_t > cqDepth
Desired completion-queue depth.
TargetInfo contains all the information required by an initiator to operate transfers to the given ta...