Class TOlfSMSrvConnectedClient

Unit

Declaration

type TOlfSMSrvConnectedClient = class(TInterfacedObject)

Description

Hierarchy

Overview

Fields

Protected FErrorDuringSend: boolean;

Methods

Protected procedure ClientLoop; virtual;
Protected procedure StartClientLoop; virtual;
Protected function GetNewMessageInstance(AMessageID: TOlfSMMessageID) : TOlfSMMessage; virtual;
Protected procedure DispatchReceivedMessage(AMessage: TOlfSMMessage); virtual;
Public constructor Create(AServer: TOlfSMServer; AClientSocket: TSocket); overload; virtual;
Public constructor Create; overload; virtual;
Public destructor Destroy; override;
Public procedure Connect; virtual;
Public procedure SendMessage(Const AMessage: TOlfSMMessage);
Public function isConnected: boolean;

Properties

Protected property Socket: TSocket read GetSocket write SetSocket;
Public property ThreadNameForDebugging: string read GetThreadNameForDebugging write SetThreadNameForDebugging;
Public property onConnected: TOlfSMConnectedClientEvent read FonConnected write SetonConnected;
Public property onLostConnection: TOlfSMConnectedClientEvent read FonLostConnection write SetonLostConnection;
Public property onDisconnected: TOlfSMConnectedClientEvent read FonDisconnected write SetonDisconnected;
Public property onEncodeMessageToSend: TOlfSMEncodeDecodeMessageEvent read FonEncodeMessageToSend write SetonEncodeMessageToSend;
Public property onDecodeReceivedMessage: TOlfSMEncodeDecodeMessageEvent read FonDecodeReceivedMessage write SetonDecodeReceivedMessage;
Public property Tag: nativeint read FTag write SetTag;
Public property TagBool: boolean read FTagBool write SetTagBool;
Public property TagString: string read FTagString write SetTagString;
Public property TagFloat: single read FTagFloat write SetTagFloat;
Public property TagObject: TObject read FTagObject write SetTagObject;

Description

Fields

Protected FErrorDuringSend: boolean;
 

Methods

Protected procedure ClientLoop; virtual;
 
Protected procedure StartClientLoop; virtual;
 
Protected function GetNewMessageInstance(AMessageID: TOlfSMMessageID) : TOlfSMMessage; virtual;
 
Protected procedure DispatchReceivedMessage(AMessage: TOlfSMMessage); virtual;
 
Public constructor Create(AServer: TOlfSMServer; AClientSocket: TSocket); overload; virtual;
 
Public constructor Create; overload; virtual;
 
Public destructor Destroy; override;
 
Public procedure Connect; virtual;
 
Public procedure SendMessage(Const AMessage: TOlfSMMessage);
 
Public function isConnected: boolean;
 

Properties

Protected property Socket: TSocket read GetSocket write SetSocket;
 
Public property ThreadNameForDebugging: string read GetThreadNameForDebugging write SetThreadNameForDebugging;
 
Public property onConnected: TOlfSMConnectedClientEvent read FonConnected write SetonConnected;
 
Public property onLostConnection: TOlfSMConnectedClientEvent read FonLostConnection write SetonLostConnection;
 
Public property onDisconnected: TOlfSMConnectedClientEvent read FonDisconnected write SetonDisconnected;
 
Public property onEncodeMessageToSend: TOlfSMEncodeDecodeMessageEvent read FonEncodeMessageToSend write SetonEncodeMessageToSend;
 
Public property onDecodeReceivedMessage: TOlfSMEncodeDecodeMessageEvent read FonDecodeReceivedMessage write SetonDecodeReceivedMessage;
 
Public property Tag: nativeint read FTag write SetTag;
 
Public property TagBool: boolean read FTagBool write SetTagBool;
 
Public property TagString: string read FTagString write SetTagString;
 
Public property TagFloat: single read FTagFloat write SetTagFloat;
 
Public property TagObject: TObject read FTagObject write SetTagObject;
 
Socket Messaging Library (c) 2023-2025 Patrick PREMARTIN - Powered by PasDoc
Generated by PasDoc 0.16.0.