[Overview][Resource strings][Constants][Types][Classes][Variables][Index] Reference for unit 'simpleipc' (#fcl)

TSimpleIPCClient

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Simple IPC client component

Declaration

Source position: simpleipc.pp line 136

type TSimpleIPCClient = class(TSimpleIPC)

protected

  FIPCComm: TIPCClientComm;

  procedure Activate; override;

  procedure Deactivate; override;

  function CommClass; virtual;

public

  constructor Create(); override;

  

Create a new instance of TSimpleIPCClient

  destructor Destroy; override;

  

Remove the TSimpleIPCClient instance from memory

  procedure Connect;

  

Connect to the server

  procedure Disconnect;

  

Disconnect from the server

  function ServerRunning;

  

Check if the server is running.

  procedure SendMessage();

  

Send a message to the server

  procedure SendStringMessage();

  

Send a string message to the server

  procedure SendStringMessageFmt();

  

Send a formatted string message

  ServerInstance: ;

  

Server instance identification

end;

Inheritance

TSimpleIPCClient

  

Simple IPC client component

|

TSimpleIPC

  

Ancestor for client/server simple IPC classes

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

TObject

Description

TSimpleIPCClient is the client side of the simple IPC communication protocol. The client program should create a TSimpleIPCClient instance, set its ServerID property to the unique name for the server it wants to send messages to, and then set the Active property to True (or call Connect).

After the connection with the server was established, messages can be sent to the server with the SendMessage or SendStringMessage calls.

See also

TSimpleIPCServer

  

Simple IPC server component

TSimpleIPC

  

Ancestor for client/server simple IPC classes

TIPCClientComm

  

Internal client-side communication protocol

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads