[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 252

type TSimpleIPCClient = class(TSimpleIPC)

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

  property ServerInstance: string; [rw]

  

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.

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


Documentation generated on: May 14 2021