Accuracer: The First And Only Cross-Platform BDE Replacement
Client-Server Single-File Embedded Database with SQL for Delphi / C++Builder / Kylix


TACRDatabase.SendMessage
TACRDatabase
Top 

Sends a custom message to client.

procedure SendMessage(const Text: String); overload;
procedure
SendMessage(Buffer: PChar; Size: Integer); overload;
procedure
SendMessage(Stream: TStream); overload;

Description

Call SendMessage to send a custom message to the client connected to this server.
Client is a record with client session connection parameters.
Text is a text of the message.
Buffer is a binary buffer (can be nil).
Size is a size of the binary buffer (can be >= 0).
Stream is a stream with message data.

To receive message from client set one of the following event handlers:
OnReceiveTextMessage
OnReceiveBinaryMessage
OnReceiveStreamMessage





© AidAim Software Accuracer: Client-server Database Single-file Database Delphi Database Embedded Databas