Skip to content

TIPCServer.PeekRequest

Peek at incoming requests from clients

Declaration

Source position: advancedipc.pp line 147

public 
function PeekRequest(const aStream: TStream; 
                    out outMsgType: TMessageType) : Boolean;  overload; overload;

function PeekRequest(const aStream: TStream; out outRequestID: Integer; 
                    out outMsgType: TMessageType) : Boolean;  overload; overload;

function PeekRequest(const aStream: TStream; out outRequestID: Integer; 
                    out outMsgType: TMessageType; 
                    const aTimeOut: Integer) : Boolean;  overload; overload;

function PeekRequest(out outMsgType: TMessageType) : Boolean;  overload; overload;

function PeekRequest(out outRequestID: Integer; 
                    out outMsgType: TMessageType) : Boolean;  overload; overload;

function PeekRequest(out outRequestID: Integer; 
                    out outMsgType: TMessageType; 
                    const aTimeOut: Integer) : Boolean;  overload; overload;

Description

The PeekRequest function retrieves incoming requests from clients. Multiple overloads support immediate checking or waiting with timeout. Some overloads read the message content directly, others only peek and require ReadRequest to get the content.

See also

Name Description
ReadRequest Read a previously peeked request
PostResponse Send response back to client