Re: Event and IO::Socket
[email protected] (Joshua N Pritikin) Mon, 5 Aug 2002 23:41:26 +0530
| Newsgroups | perl.loop |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 05, 2002 at 10:40:47AM -0400, Jeff Boes wrote: > On Sat, 2002-08-03 at 00:01, Joshua N Pritikin wrote: > > That looks OK to me. Is it actually not working or are you just > > looking for encouragement? > > Hmm. It seems to be working now, but I'm not quite sure what I did. I > guess the encouragement is sufficient! > > But on another note: what exactly does the 'min' parameter for an 'io' > event do? 'min' is the minimum number of seconds between triggering the watcher. If it triggers more frequently than 'min' seconds that that is fine. > I've sent 'min' to 20, but I see events occurring more > frequently than that. What I'd like to do is have the event trigger on > the availability of data at the socket, but not if the last event > happened less than N seconds ago. You'll need to special case that behavior in your callback. -- Victory to the Divine Mother!! after all, http://sahajayoga.org http://why-compete.org