[Overview][Resource strings][Constants][Types][Classes][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Internal message communication component
Source position: simpleipc.pp line 89
type TIPCServerComm = class(TObject) |
||
public |
||
constructor Create(); virtual; |
|
Create a new instance of the communication handler |
property Owner: TSimpleIPCServer; [r] |
|
TSimpleIPCServer instance for which to handle transport |
procedure StartServer; virtual; abstract; |
|
Start the server-side of the communication channel |
procedure StopServer; virtual; abstract; |
|
Stop the server side of the communication channel. |
function PeekMessage(); virtual; abstract; |
|
See if a message is available. |
procedure ReadMessage; virtual; abstract; |
|
Read message from the channel. |
property InstanceID: string; [r] |
|
Unique identifier for the communication channel. |
end; |
|
Internal message communication component |
|
| | ||
TObject |
TIPCServerComm is an abstract component which implements the server-side communication protocol. The behaviour expected of this class must be implemented in a platform-dependent descendent class.
The TSimpleIPCServer class does not implement the messaging protocol by itself. Instead, it creates an instance of a (platform dependent) descendent of TIPCServerComm which handles the internals of the communication protocol.
The client side of the messaging protocol is handled by the TIPCClientComm component. The descendent components must always be implemented in pairs.
|
Simple IPC server component |
|
|
Internal client-side communication protocol |