Difference between revisions of "Midware TRequestBroker.AddServerObjectWithReference"

From Overbyte
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Midware | Main page]] -> [[Midware_Components_Reference | Midware component reference]] -> [[Midware_TRequestBroke | TRequestBroke]] -> [[Midware_TRequestBroker.BrokeRequest | BrokeRequest]]
+
[[Midware | Main page]] -> [[Midware_Components_Reference | Midware component reference]] -> [[Midware_TRequestBroker | TRequestBroker]] -> [[Midware_TRequestBroker.AddServerObjectWithReference | AddServerObjectWithReference]]
  
 
== Definition ==
 
== Definition ==
  
  '''procedure''' BrokeRequest(Sender : TObject; RqBuffer : PChar; RqLength : Integer; Tag : TObject; SendResp : TSendResponseToClient);
+
  '''procedure''' AddServerObjectWithReference(ServerObjectClass    : TServerObjectClass; ServerObjectInstance : TServerObject);
  
 
== Description ==
 
== 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.
+
AddServerObjectWithReference does the same job as AddServerObject and also initialize the reference in added TServerObject to make TServerObject.CopyFromReference works correctly. AddServerObjectWithReference should not be used in normal application servers.
 
 
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.
 

Latest revision as of 15:09, 7 May 2011

Main page -> Midware component reference -> TRequestBroker -> AddServerObjectWithReference

Definition

procedure AddServerObjectWithReference(ServerObjectClass    : TServerObjectClass; ServerObjectInstance : TServerObject);

Description

AddServerObjectWithReference does the same job as AddServerObject and also initialize the reference in added TServerObject to make TServerObject.CopyFromReference works correctly. AddServerObjectWithReference should not be used in normal application servers.