Difference between revisions of "Midware TRequestBroker.AddServerObjectWithReference"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | [[Midware | Main page]] -> [[Midware_Components_Reference | Midware component reference]] -> [[ | + | [[Midware | Main page]] -> [[Midware_Components_Reference | Midware component reference]] -> [[Midware_TRequestBroker | TRequestBroker]] -> [[Midware_TRequestBroker.BrokeRequest | BrokeRequest]] |
== Definition == | == Definition == |
Revision as of 15:03, 7 May 2011
Main page -> Midware component reference -> TRequestBroker -> BrokeRequest
Definition
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.