Class TRtcCryptPlugin

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TRtcCryptPlugin = class(TComponent)

Description

Cryptography Plugin

This is a basic class for any kind of third-party encryption/decryption plug-ins used by rtcHttpClient and rtcHttpServer components.

Hierarchy

Overview

Methods

Public function AfterConnectEx(var ConnCryptObj:TObject; var OutData:RtcByteArray; Protocol: TRtcCryptPluginProtocol; const RemoteAddr, RemoteIP:RtcString):TRtcCryptPluginState; virtual; abstract;
Public function BeforeDisconnectEx(var ConnCryptObj:TObject; var OutData:RtcByteArray):TRtcCryptPluginState; virtual; abstract;
Public procedure AfterDisconnectEx(var ConnCryptObj:TObject); overload; virtual; abstract;
Public function DataReceivedEx(var ConnCryptObj:TObject; const InData:RtcByteArray; var OutData:RtcByteArray; var OutPlainText:RtcByteArray):TRtcCryptPluginState; virtual; abstract;
Public function DataToSendEx(var ConnCryptObj:TObject; const InData:RtcByteArray; var OutData:RtcByteArray):TRtcCryptPluginState; virtual; abstract;

Description

Methods

Public function AfterConnectEx(var ConnCryptObj:TObject; var OutData:RtcByteArray; Protocol: TRtcCryptPluginProtocol; const RemoteAddr, RemoteIP:RtcString):TRtcCryptPluginState; virtual; abstract;

Called after a new connection was established. OutData = data which has to be sent out immediately.

Public function BeforeDisconnectEx(var ConnCryptObj:TObject; var OutData:RtcByteArray):TRtcCryptPluginState; virtual; abstract;

Called before we do a graceful disconnect, in case some data has to be sent out. OutData = data which has to be sent out immediately.

Public procedure AfterDisconnectEx(var ConnCryptObj:TObject); overload; virtual; abstract;

Called after a connection was closed.

Public function DataReceivedEx(var ConnCryptObj:TObject; const InData:RtcByteArray; var OutData:RtcByteArray; var OutPlainText:RtcByteArray):TRtcCryptPluginState; virtual; abstract;

Called when data arrived. InData = data received from recipient (decode that!) OutData = data prepared by "decoder" for sending back to recipient (encoded data) OutPlainText = decrypted input data (for use by application)

Public function DataToSendEx(var ConnCryptObj:TObject; const InData:RtcByteArray; var OutData:RtcByteArray):TRtcCryptPluginState; virtual; abstract;

Called when data needs to be sent. InData = application data which we want to be encoded for sending OutData = encoded data which should be sent out


Generated by PasDoc 0.14.0.