Declaration¶
Source position: simpleipc.pp line 96
type
TIPCServerComm = class(TObject)
public
constructor Create;
property Owner: TSimpleIPCServer; {r}
procedure StartServer;
procedure StopServer;
function PeekMessage : Boolean;
procedure ReadMessage;
property InstanceID: string; {r}
end;
Inheritance¶
Description¶
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.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| InstanceID read only | public | Unique identifier for the communication channel. |
| Owner read only | public | TSimpleIPCServer instance for which to handle transport. |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Create | public | Create a new instance of the communication handler. |
| PeekMessage | public | See if a message is available. |
| ReadMessage | public | Read message from the channel. |
| StartServer | public | Start the server-side of the communication channel. |
| StopServer | public | Stop the server side of the communication channel. |
See also¶
| Name | Description |
|---|---|
| TSimpleIPCServer | Simple IPC server component. |
| TIPCClientComm | Internal client-side communication protocol. |