Declaration¶
Source position: advancedipc.pp line 132
type
TIPCServer = class(TIPCBase)
public
constructor Create;
destructor Destroy;
function PeekRequest(const aStream: TStream;
out outMsgType: TMessageType) : Boolean; overload;
function PeekRequest(const aStream: TStream; out outRequestID: Integer;
out outMsgType: TMessageType) : Boolean; overload;
function PeekRequest(const aStream: TStream; out outRequestID: Integer;
out outMsgType: TMessageType;
const aTimeOut: Integer) : Boolean; overload;
function PeekRequest(out outMsgType: TMessageType) : Boolean; overload;
function PeekRequest(out outRequestID: Integer;
out outMsgType: TMessageType) : Boolean; overload;
function PeekRequest(out outRequestID: Integer;
out outMsgType: TMessageType;
const aTimeOut: Integer) : Boolean; overload;
function ReadRequest : Boolean;
function DeleteRequest : Boolean;
procedure PostResponse;
function FindHighestPendingRequestId : Integer;
function GetPendingRequestCount : Integer;
function StartServer : Boolean;
function StopServer : Boolean;
procedure DeletePendingRequests;
property Active: Boolean; {r}
end;
Inheritance¶
Description¶
The TIPCServer class provides server-side functionality for inter-process communication. It can receive requests from clients, process them, and send back responses. The server must be started to become available for client connections.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| Active read only | public | Server running state |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| Create | public | Create IPC server instance |
| DeletePendingRequests | public | Delete all pending requests and responses |
| DeleteRequest | public | Delete a peeked request |
| Destroy | public | Destroy IPC server instance |
| FindHighestPendingRequestId | public | Find the highest pending request ID |
| GetPendingRequestCount | public | Get the number of pending requests |
| PeekRequest | public | Peek at incoming requests from clients |
| PostResponse | public | Send response back to client |
| ReadRequest | public | Read a previously peeked request |
| StartServer | public | Start the IPC server |
| StopServer | public | Stop the IPC server |
See also¶
| Name | Description |
|---|---|
| TIPCBase | Base class for IPC client and server functionality |
| TIPCClient | IPC client for sending requests and receiving responses |