Class TSChannelWSocket
Unit
SChannel.IcsWSocket
Declaration
type TSChannelWSocket = class(TWSocket)
Description
ICS TWSocket descendant supporting TLS
Hierarchy
- TWSocket
- TSChannelWSocket
Overview
Methods
Properties
Description
Methods
|
constructor Create(AOwner : TComponent); override; |
|
|
destructor Destroy; override; |
|
|
procedure Listen; override; |
Override for inherited method - deny listening in secure mode
|
|
procedure Shutdown(How : Integer); override; |
Override for inherited method - shutdown TLS channel before closing the connection (ignoring exceptions and don't waiting for peer response)
|
|
procedure PostFD_EVENT(Event: Cardinal); |
Imitate FD_* event on a socket. Mostly useful with FD_READ to have DataAvailable with buffering socket implementations
|
Properties
|
property Secure: Boolean read FSecure write SetSecure; |
Indicates whether TLS is currently used. Effect of setting the property depends on current state. Socket is not connected:
Socket is connected:
|
|
property PayloadReadCount: Int64 read FPayloadReadCount; |
Traffic counter for incoming payload. TWSocket.ReadCount property reflects encrypted traffic
|
|
property PayloadWriteCount: Int64 read FPayloadWriteCount; |
Traffic counter for outgoing payload. TWSocket.WriteCount property reflects encrypted traffic
|
|
property SessionData: TSessionData read FSessionData write SetSessionData; |
TLS Session data that allows fine tuning of TLS handshake. Also it could contain shared credentials used by multiple sockets. Fields must be assigned before starting TLS handshake (otherwise exception is raised). Note that some fields are assigned internally based on other values (f.ex., sfNoServerVerify flag is enabled if connecting to IP). Initial values are returned when secure connection is finished. ! Session data is finalized in destructor, closing and zeroing any non-shared handles.
|
|
property OnTLSDone: TNotifyEvent read FOnTLSDone write FOnTLSDone; |
Event is called when TLS handshake is established successfully
|
|
property OnTLSShutdown: TNotifyEvent read FOnTLSShutdown write FOnTLSShutdown; |
Event is called when TLS handshake is shut down
|
Generated by PasDoc 0.16.0.