|Top Previous Next|
type // defined in MRVType unit
TRVCmdReadEvent = procedure(Sender: TObject; SessionKey: TRVSessionKey;
property OnReceiveCmdData: TRVCmdReadEvent;
Cmd – the command and its parameters.
nGUIDFrom – identifier of the sender which sent the command (TRVCamSender.GUIDFrom)
If you perform time consuming operations inside an event, it makes sense to compare values of SessionKey parameter and SessionKey property, to make sure that a connection was not closed or reopened.
By default, this event is not called when receiving system commands (having names starting from 'RV_' or 'RVS_'). If you want to call this event for these commands (for example, for debugging), assign FilterSystemCmd=False.