Difference between revisions of "Midware TRequestBroker.BrokeRequest"
Jump to navigation
Jump to search
(Created page with ' Main page -> Midware component reference -> TRequestBroker -> [[Midware_TRequestBroker.BrokeRequest …') |
|||
Line 2: | Line 2: | ||
== Definition == | == 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); | '''procedure''' BrokeRequest(Sender : TObject; RqBuffer : PChar; RqLength : Integer; Tag : TObject; SendResp : TSendResponseToClient); |
Latest revision as of 12:43, 24 May 2011
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.