Esempio n. 1
0
 private IntPtr NewDomainParticipantListener(OnDataOnReadersDelegate onDataOnReaders,
                                             OnDataAvailableDelegate onDataAvailabe,
                                             OnRequestedDeadlineMissedDelegate onRequestedDeadlineMissed,
                                             OnRequestedIncompatibleQosDelegate onRequestedIncompatibleQos,
                                             OnSampleRejectedDelegate onSampleRejected,
                                             OnLivelinessChangedDelegate onLivelinessChanged,
                                             OnSubscriptionMatchedDelegate onSubscriptionMatched,
                                             OnSampleLostDelegate onSampleLost,
                                             OnOfferedDeadlineMissedDelegate onOfferedDeadlineMissed,
                                             OnOfferedIncompatibleQosDelegate onOfferedIncompatibleQos,
                                             OnLivelinessLostDelegate onLivelinessLost,
                                             OnPublicationMatchedDelegate onPublicationMatched,
                                             OnInconsistentTopicDelegate onInconsistentTopic)
 {
     return(UnsafeNativeMethods.NewDomainParticipantListener(onDataOnReaders,
                                                             onDataAvailabe,
                                                             onRequestedDeadlineMissed,
                                                             onRequestedIncompatibleQos,
                                                             onSampleRejected,
                                                             onLivelinessChanged,
                                                             onSubscriptionMatched,
                                                             onSampleLost,
                                                             onOfferedDeadlineMissed,
                                                             onOfferedIncompatibleQos,
                                                             onLivelinessLost,
                                                             onPublicationMatched,
                                                             onInconsistentTopic));
 }
Esempio n. 2
0
 private IntPtr NewPublisherListener(OnOfferedDeadlineMissedDelegate onOfferedDeadlineMissed,
                                     OnOfferedIncompatibleQosDelegate onOfferedIncompatibleQos,
                                     OnLivelinessLostDelegate onLivelinessLost,
                                     OnPublicationMatchedDelegate onPublicationMatched)
 {
     return(UnsafeNativeMethods.NewPublisherListener(onOfferedDeadlineMissed,
                                                     onOfferedIncompatibleQos,
                                                     onLivelinessLost,
                                                     onPublicationMatched));
 }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DomainParticipantListener"/> class.
        /// </summary>
        protected DomainParticipantListener()
        {
            _onDataOnReaders  = new OnDataOnReadersDelegate(OnDataOnReadersHandler);
            _gchDataOnReaders = GCHandle.Alloc(_onDataOnReaders);

            _onDataAvailable  = new OnDataAvailableDelegate(OnDataAvailableHandler);
            _gchDataAvailable = GCHandle.Alloc(_onDataAvailable);

            _onRequestedDeadlineMissed  = new OnRequestedDeadlineMissedDelegate(OnRequestedDeadlineMissedHandler);
            _gchRequestedDeadlineMissed = GCHandle.Alloc(_onRequestedDeadlineMissed);

            _onRequestedIncompatibleQos  = new OnRequestedIncompatibleQosDelegate(OnRequestedIncompatibleQosHandler);
            _gchRequestedIncompatibleQos = GCHandle.Alloc(_onRequestedIncompatibleQos);

            _onSampleRejected  = new OnSampleRejectedDelegate(OnSampleRejectedHandler);
            _gchSampleRejected = GCHandle.Alloc(_onSampleRejected);

            _onLivelinessChanged  = new OnLivelinessChangedDelegate(OnLivelinessChangedHandler);
            _gchLivelinessChanged = GCHandle.Alloc(_onLivelinessChanged);

            _onSubscriptionMatched  = new OnSubscriptionMatchedDelegate(OnSubscriptionMatchedHandler);
            _gchSubscriptionMatched = GCHandle.Alloc(_onSubscriptionMatched);

            _onSampleLost  = new OnSampleLostDelegate(OnSampleLostHandler);
            _gchSampleLost = GCHandle.Alloc(_onSampleLost);

            _onOfferedDeadlineMissed  = new OnOfferedDeadlineMissedDelegate(OnOfferedDeadlineMissedHandler);
            _gchOfferedDeadlineMissed = GCHandle.Alloc(_onOfferedDeadlineMissed);

            _onOfferedIncompatibleQos  = new OnOfferedIncompatibleQosDelegate(OnOfferedIncompatibleQosHandler);
            _gchOfferedIncompatibleQos = GCHandle.Alloc(_onOfferedIncompatibleQos);

            _onLivelinessLost  = new OnLivelinessLostDelegate(OnLivelinessLostHandler);
            _gchLivelinessLost = GCHandle.Alloc(_onLivelinessLost);

            _onPublicationMatched  = new OnPublicationMatchedDelegate(OnPublicationMatchedHandler);
            _gchPublicationMatched = GCHandle.Alloc(_onPublicationMatched);

            _onInconsistentTopic  = new OnInconsistentTopicDelegate(OnInconsistentTopicHandler);
            _gchInconsistentTopic = GCHandle.Alloc(_onInconsistentTopic);

            _native = NewDomainParticipantListener(_onDataOnReaders,
                                                   _onDataAvailable,
                                                   _onRequestedDeadlineMissed,
                                                   _onRequestedIncompatibleQos,
                                                   _onSampleRejected,
                                                   _onLivelinessChanged,
                                                   _onSubscriptionMatched,
                                                   _onSampleLost,
                                                   _onOfferedDeadlineMissed,
                                                   _onOfferedIncompatibleQos,
                                                   _onLivelinessLost,
                                                   _onPublicationMatched,
                                                   _onInconsistentTopic);
        }
Esempio n. 4
0
 public static extern IntPtr NewDomainParticipantListener([MarshalAs(UnmanagedType.FunctionPtr)] OnDataOnReadersDelegate onDataOnReaders,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnDataAvailableDelegate onDataAvalaible,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnRequestedDeadlineMissedDelegate onRequestedDeadlineMissed,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnRequestedIncompatibleQosDelegate onRequestedIncompatibleQos,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnSampleRejectedDelegate onSampleRejected,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnLivelinessChangedDelegate onLivelinessChanged,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnSubscriptionMatchedDelegate onSubscriptionMatched,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnSampleLostDelegate onSampleLost,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnOfferedDeadlineMissedDelegate onOfferedDeadlineMissed,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnOfferedIncompatibleQosDelegate onOfferedIncompatibleQos,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnLivelinessLostDelegate onLivelinessLost,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnPublicationMatchedDelegate onPublicationMatched,
                                                          [MarshalAs(UnmanagedType.FunctionPtr)] OnInconsistentTopicDelegate onInconsistentTopic);
Esempio n. 5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PublisherListener"/> class.
        /// </summary>
        protected PublisherListener()
        {
            _onOfferedDeadlineMissed  = new OnOfferedDeadlineMissedDelegate(OnOfferedDeadlineMissedHandler);
            _gchOfferedDeadlineMissed = GCHandle.Alloc(_onOfferedDeadlineMissed);

            _onOfferedIncompatibleQos  = new OnOfferedIncompatibleQosDelegate(OnOfferedIncompatibleQosHandler);
            _gchOfferedIncompatibleQos = GCHandle.Alloc(_onOfferedIncompatibleQos);

            _onLivelinessLost  = new OnLivelinessLostDelegate(OnLivelinessLostHandler);
            _gchLivelinessLost = GCHandle.Alloc(_onLivelinessLost);

            _onPublicationMatched  = new OnPublicationMatchedDelegate(OnPublicationMatchedHandler);
            _gchPublicationMatched = GCHandle.Alloc(_onPublicationMatched);

            _native = NewPublisherListener(_onOfferedDeadlineMissed,
                                           _onOfferedIncompatibleQos,
                                           _onLivelinessLost,
                                           _onPublicationMatched);
        }
Esempio n. 6
0
 public static extern IntPtr NewPublisherListener([MarshalAs(UnmanagedType.FunctionPtr)] OnOfferedDeadlineMissedDelegate onOfferedDeadlineMissed,
                                                  [MarshalAs(UnmanagedType.FunctionPtr)] OnOfferedIncompatibleQosDelegate onOfferedIncompatibleQos,
                                                  [MarshalAs(UnmanagedType.FunctionPtr)] OnLivelinessLostDelegate onLivelinessLost,
                                                  [MarshalAs(UnmanagedType.FunctionPtr)] OnPublicationMatchedDelegate onPublicationMatched);