At 27/3/99 6:02 PM, John Schettino <[EMAIL PROTECTED]> wrote:

>>
>> if ( numFDs == 0 )  // timout has occured
>> {
>>       // Do something...
>> }
>>
>
>Oops! as it says in the Docs... numFDs is -1 when the select times out,
>and then you test mtNetError == netErrTimeout to detect the timeout.
>Something like this:

My docs definately say that NetLibSelect returns 0 if a timeout 
occurred...??

CW R5...

Result Codes   >0   Sum total number of ready file descriptors in 
*readFDs, *writeFDs and *exceptFDs.
               0    Timeout.
               -1   Error occurred, error code in *errP.


Gavin.

Reply via email to