pub fn send<L: DataLinkLayer>(
link: &mut L,
apdu: &[u8],
block_payload_max: usize,
window: u8,
streaming: bool,
) -> Result<()>Expand description
Segments apdu into general-block-transfer blocks of at most
block_payload_max octets each and sends them over link. In confirmed
mode (window > 0), waits for an ack-only GBT frame after each window of
blocks and retransmits from the first block the peer has not acknowledged
if it reports a gap; with window == 0 (unconfirmed) or streaming, no
ack is awaited until the caller separately reads a reply.
block_payload_max must be at least 1; a request that already fits
within it is still sent as a single-block GBT APDU.