TROMessageEnvelopeCollection

Overview

TROMessageEnvelopeCollection is used internally by TROMessage to implement the Message Envelopes stack. It contains a sequence of TROMessageEnvelopeItem which used for traffic encryption as described in the article.

Location

Properties


Items

Retrieves a concrete TROMessageEnvelopeItem by its position in the Message Envelopes stack.

property Items[Index: integer]: TROMessageEnvelopeItem read write

Instance Methods


constructor Create

Creates a new instance.

constructor Create(aMessage: TROMessage)

Parameters:

  • aMessage: owner

ItemByEnvelope

Returns the first TROMessageEnvelopeItem with the given envelope, or nil if none can be found.

function ItemByEnvelope(const aEnvelope: TROMessageEnvelope): TROMessageEnvelopeItem

Parameters:

  • aEnvelope: envelope

ItemByMarker

Returns the first TROMessageEnvelopeItem with the given marker, or NIL if none can be found.

function ItemByMarker(const aMarker: string): TROMessageEnvelopeItem

Parameters:

  • aMarker: envelope marker