[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: non-blocking socket operations...
- From: diego@...
- Date: Thu, 17 Jun 2004 18:48:05 -0400 (EDT)
> In the description for settimeout() there is this :
> "Note: although timeout values have millisecond precision in
This is for *very* large blocks of data, and not for receiving, just for
sending. If you want to send 10MB of data, you have to chop it up and
send part by part.
> Is there are a way to configure select() turn return _instantly_ if there
> is no data available?
How about calling select with a timeout 0? You can also set the timeout
to zero in the socket object can call receive.
> Does this mean that settimeout() will accept fractional second values
> such as settimeout(.10) as being valid for a 1/10th of a second timeout?
You bet. It already did in LuaSocket 1.4 (for Lua 4.0).