Internet Direct (Indy) Version 9.0.1 Beta
MakeAckPkt
Construct a TFTP acknowledgement packet.

function MakeAckPkt(const BlockNumber: Word): string;
Parameters
const BlockNumber: Word
Block number to be acknowledged.

Returns
String - Packet created for the protocol.

Description
MakeAckPkt is a String function used to construct and populate an acknowledgement packet used by the TrivialFTP protocol. The acknowledgement packet contains the TFTP_ACK OpCode and the value from BlockNumber.