Top  Previous  Next

Unit MRVType;


  TRVSocketEvent = procedure(Sender : TObject; SessionKey: TRVSessionKey

    MediaTypes: TRVMediaTypesof object;

This is the type of the following events:

TRVCamSender.OnConnected, OnConnecting, OnDisconnect, OnConnectError

TRVCamReceiver.OnConnected, OnConnecting, OnDisconnect, OnConnectError


SessionKey equals to TRVCamSender.SessionKey or TRVCamReceiver.SessionKey. 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.

MediaTypes idendifies a data type for this connection. It can be either empty or contain a single data type, see the topics about the events.