LEADTOOLS Filters Help > Filters, Codecs and Interfaces > Streaming Filters > ILMUDPSrcCallback Interface |
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.
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.
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