Declaration¶
Source position: simpleipc.pp line 248
type
TIPCClientComm = class(TObject)
public
constructor Create;
property Owner: TSimpleIPCClient; {r}
procedure Connect;
procedure Disconnect;
function ServerRunning : Boolean;
procedure SendMessage;
end;
Inheritance¶
Description¶
TIPCClientComm is an abstract component which implements the client-side communication protocol. The behaviour expected of this class must be implemented in a platform-dependent descendent class.
The TSimpleIPCClient class does not implement the messaging protocol by itself. Instead, it creates an instance of a (platform dependent) descendent of TIPCClientComm which handles the internals of the communication protocol.
The server side of the messaging protocol is handled by the TIPCServerComm component. The descendent components must always be implemented in pairs.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| Owner read only | public | TSimpleIPCClient instance for which communication must be handled. |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Connect | public | Connect to the server. |
| Create | public | Create a new instance of the TIPCClientComm. |
| Disconnect | public | Disconnect from the server. |
| SendMessage | public | Send a message. |
| ServerRunning | public | Check if the server is running. |
See also¶
| Name | Description |
|---|---|
| TSimpleIPCClient | Simple IPC client component. |
| TIPCServerComm | Internal message communication component. |
| TSimpleIPCServer | Simple IPC server component. |