Internet Direct (Indy) Version 9.0.2 Beta
TSender.PrepareMsg
Constructs an encapsulated tunnel message.

procedure PrepareMsg(var Header: TIdHeader; buffer: PChar; buflen: Integer);
Parameters
var Header: TIdHeader
Container for encapsulation headers.

buffer: PChar
Data for the message.

buflen: Integer
Number of bytes to be included in the message.

Description
PrepareMsg is a procedure used to implement construction of the encapsulated tunnel message including headers with a CRC checksum value, and the message content.

Header is a container for the encapsulation headers for the message.

Buffer represents the message content used in the message construction.

BufLen is the number of bytes in Buffer to be included in the message.