RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TLinkedRIO.CreateFile Constructor

Creates an instance of TLinkedRIO.

Pascal
constructor CreateFile(AOwner: TComponent; ReqFile: string; RespFile: string); overload;
C++
__fastcall TLinkedRIO(TComponent * AOwner, AnsiString ReqFile, AnsiString RespFile);

Call Create to instantiate a TLinkedRIO object when you want to save all of the encoded requests that it generates and the encoded results it receives to a file. 

The AOwner parameter specifies another component (usually a form or data module) that is responsible for freeing the TLinkedRIO instance. It becomes the value of the Owner property. If the TLinkedRIO instance is created with AOwner set to nil, then it is automatically freed when its reference count drops to zero. 

ReqFile is a file to which TLinkedRIO writes every encoded request before passing it on to WebNode for execution. If ReqFile is an empty string, TLinkedRIO automatically generates a file with the same name as the invoked method. This lets you generate separate log files for each method of the interface.  

RespFile is a file to which TLinkedRIO writes every encoded response it receives from WebNode after executing a method call. If RespFile is an empty string, TLinkedRIO automatically generates a file with the name of the method and the string _resp appended. This lets you generate separate log files for responses to each method of the interface. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!