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


TACRServer.SendMessage
TACRServer
Top 

Sends a custom message to client.

procedure SendMessage(const Client: TACRClientInfo; const Text: String); overload;
procedure
SendMessage(const Client: TACRClientInfo; Buffer: PChar; Size: Integer); overload;
procedure
SendMessage(const Client: TACRClientInfo; 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

Use GetClients method to get list of all connected clients.
Also you can learn if client is still connected by IsClientConnected method.





© AidAim Software Accuracer: Benefits-bde Replacement Embedded Database For Delphi C\+\+ Builder Kyli