Device Function

Listen Check

dev_ListenCheck()

Check the status of a listen request.

Syntax
#include "device.h"

LResult  dev_ListenCheck
    (
         LDevice  device
    );
devicedevice to check
Description

dev_ListenCheck() checks the status of a listen request.

Return Values

If successful, dev_ListenCheck() returns a non-negative value. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

dev_Listen()

Example
if ((result = dev_Listen(device)) < 0)
{
    LOG("Listen failure", dev_ErrorMessage(result));
}
else
{
    while (dev_ListenCheck(device) < 0)
    {
        Sleep(1000);
    }
}