[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Luasocket socket.select timeout bugs?
From:       Daniel Quintela <dq () soongsoft ! com>
Date:       2004-09-21 20:22:26
Message-ID: 41508D82.70403 () soongsoft ! com
[Download RAW message or body]

Diego Nehab escribió:

>Hi,
>
>  
>
>>>This doesn't work on Windows, though...  Use socket.sleep instead.
>>>      
>>>
>>Can you clarify? Calling select() with sub-second timeouts works fine on
>>for me on windows -- is this an issue with luasocket's use of winsock or
>>windows itself?
>>
>>Wooo, first post to the group :)
>>    
>>
>
>Calling select with empty sets on Windows gives an error. Check the
>manual and try it. :o)
>
>    "Any two of the parameters, readfds, writefds, or exceptfds, can be
>    given as null. At least one must be non-null, and any non-null
>    descriptor set must contain at least one handle to a socket."
>
>[]s,
>Diego.
>
>  
>
See at:  
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/select_2.asp

WSAEINVAL 	The /time-out/ value is not valid, or all three descriptor 
parameters were NULL.


Regards,
Daniel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic