Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.24
LEADTOOLS Filters Help

ILMUDPSrcCallback Interface

Show in webframe

This interface should be implemented by the user. The object implementing this interface should be set to ILMUDPSrc::CallbackObj. The UDP Source will call the EventNotification whenever appropriate.

Data types:

UDPSrcEventNotificationConstants:

typedef enum
{
   EVENTTYPE_NODATAAVAILABLE = 0, /* The filter is not receiving any data */
} UDPSrcEventNotificationConstants;

Lists the possible values for the event notification constants passed to the EventNotification method.
 

Interface Methods:

HRESULT EventNotification(UDPSrcEventNotificationConstants notificationType, double Param1, double Param2);

Parameters

notificationType

Notification type.

Param1

First parameter. Its value depends on the notification type

Param1

Second parameter. Its value depends on the notification type

Description

This method will be called by the UDP Source when there is a notification. At the moment, there is only one notification:

 

Notification type

Description

EVENTTYPE_NODATAAVAILABLE

The UDP Source has not received any data. This allows the user to abort the wait operation by returning an error code from EventNotifications. This even will be called at regular intervals (every second) until the UDP source receives some data or until the user returns an error from this method. If you return an error from the callback, the loading process will be aborted.

Param1 = the amount of time in milliseconds elapsed since the UDP source received data the last time.

Param2 = Unused (will be zero).

Returns

S_OK if successful, < 0 if there is an error

 

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.