Midware TRequestBroker.BrokeRequest
Main page -> Midware component reference -> TRequestBroker -> BrokeRequest
Definition
<syntaxhighlight lang="delphi"> type
TSendResponseToClient = procedure (Dest : TObject; ORB : TRequestBroker; Status : Integer; Response : PChar; Len : Integer) of object;
</syntaxhighlight>
procedure BrokeRequest(Sender : TObject; RqBuffer : PChar; RqLength : Integer; Tag : TObject; SendResp : TSendResponseToClient);
Description
BrokeRequest is the ORB main method. This is the method which does all the work: creack header, find and instanciate TServerObject, execute server object code and send result back to the client.
RqBuffer and RqLength argument are the request buffer address and length. Tag is a reference to internal TWSocket component used for communication with client. SendResp is a pointer to the method which will be used to send result set back to client.
BrokeRequest should not be used in a normal application server because it is invoked automatically by TAppServer component when a client send a request.