Indy 9
TSender
Hierarchy, Methods, See Also, Unit: IdTunnelCommon
Implements encapsulated tunnel message construction for transmission.
TSender = class(TObject)
Unit
IdTunnelCommon
Description
TSender is a class that implements support for construction of encapsulated tunnel messages for Indy Tunnel components. TIdTunnelMaster uses TSender to build message types, headers, and data for tunnel client connections.

TSender.Create
TSender
Constructor for the object instance.
constructor Create;
Parameters
AOwner
Owner of the object instance.
Description
Create is the constructor for the object instance, and relies on the inherited Create method. Create also initializes object properties for the CRC calculator and HeaderLen. Create allocates the buffer used for pMsg.

TSender.Destroy
TSender
Free the object instance.
destructor Destroy; override;
Description
Destroy is the destructor for the object instance. Destroy frees pMsg and the CRC calculator for the object instance prior to calling the inherited Destroy method.

TSender.PrepareMsg
TSender
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.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.