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

`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
`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`
`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

The latest version of this document can be found at lazarus-ccr.sourceforge.net .