hololink::emulation::BaseTransmitter
hololink::emulation::BaseTransmitter
Abstract base class for all transmitters.
Concrete transmitters (COETransmitter, RoCEv2Transmitter, UDPTransmitter) receive a DataPlaneCtxt* and downcast to their transport-specific ctxt (COECtxt, RoCEv2Ctxt, UDPCtxt) — those structs embed the platform DataPlaneCtxt extension as their first member, so the pointer cast is sound.
Constructors
BaseTransmitter
Construct a new BaseTransmitter object.
Destructor
~BaseTransmitter
Destroy the BaseTransmitter object.
Methods
send
Send a host buffer to the destination.
Returns: Bytes sent, or < 0 on error.
Parameters
ctxt
DataPlaneCtxt for the owning DataPlane. Concrete transmitter downcasts.
buffer
Host-memory buffer.
buffer_size
Bytes to send.
frame_metadata
Optional frame-flush trigger; see DataPlane::send for semantics.