2008/3/17, Adam Langley <[EMAIL PROTECTED]>:
> On Mon, Mar 17, 2008 at 2:29 AM, Vitaliy Akimov
>
>
> The important point here is that the recvFrom calls in
>  Network.Socket[1] don't block.

Yes, this is the answer.  Network.Socket.socket calls
System.Posix.Internals.setNonBlockingFD to set socket non-blocking.
I'm on Windows, and this function is simply "return ()" for this
platform.
So that's why it doesn't work on Windows, I think I should find some
way to make a socket unblocking after its creation.

Thank you.
Vitaliy.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to