On Wed, Jul 4, 2012 at 9:29 AM, Oleg Efimov (Sannis) <[email protected]> wrote:
> According to docs [1], you can use require('fs').FSWatcher for watch a
> file.
>
> If it is available only as file descriptor and you can't change this, i
> think it is possible to implement FSWatcher with fd argument.
> Ben or Bert should know more about this feature necessity in libuv.
Not quite. FSWatcher is a completely different beast.
IOWatcher is deprecated and will be removed with no replacement. If
you need IOWatcher-like functionality, write something on top off
uv_poll_*() or steal the current implementation, it's in
src/node_io_watcher.{cc,h}.
I'll probably release a node-iowatcher package sometime during the
v0.9 cycle (unless a similar package already exists).
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en