Filter:C# VB.NET C++ (.NET) Java PHP C++ Delphi / Pascal (VCL) C++Builder (VCL)
Sends requested objects to the client
[Delphi / Pascal (VCL)]
property OnGetObjects : TRTGetObjectsEvent;
TRTGetObjectsEvent = procedure( Sender : TObject; Info : array of TObjectInfo out Result : integer ) of object;
public __property RethyncServer::TRTGetObjectsEvent OnGetObjects;
typedef void (__closure *TRTGetObjectsEvent)( System::TObject* Sender, DynamicArray<TObjectInfo>* Info int &Result );
- Sender - Contains the reference to the object that fired an event
- Info - Event handler must fill corresponding ObjectHash and ObjectData properties of objects in the array with data
- Result - Event handler must set the parameter to 0 if no problems happened during handling of this event or to one of defined error codes in case of failure
The event handler should provide data for each object requested by the client.
The object for which the data is requested is identified by ObjectID property of objects contained in Info array. Event handler must set ObjectHash and ObjectData properties of the corresponding Object or report an error for given object. Status property of the object must be set to "no error" if the data were set for the object, or to corresponding status code if the object could not be found or accessed.
Object class must be locked by the client before any information that belongs to the class is synchronized, otherwise the server must return CLASS_NOT_LOCKED error.
If the implementation needs to add some information or status to the centralized log, it can use Log() method of Engine object provided in OnOpenSession event.
Got questions or comments about this topic? Tell us about them.