#857 net.server: API for watching an arbitrary file descriptor
Reporter
Zash
Owner
Nobody
Created
Updated
Stars
★ (1)
Tags
Priority-Medium
Status-Duplicate
Type-Enhancement
Zash
on
In cases where we want to keep track of events from other things that communicate
via 'readyness' of an FD, not having to wrap this in a socket-like API would be helpful.
Proposed API
server.watchfd(fd : number, onreadable : callback, onwritable : callback) -> handle object
The presence of either callback would be used to determine what events to watch for.
Zash
on
Oh, I had apparently already written this down in #730
In cases where we want to keep track of events from other things that communicate via 'readyness' of an FD, not having to wrap this in a socket-like API would be helpful. Proposed API server.watchfd(fd : number, onreadable : callback, onwritable : callback) -> handle object The presence of either callback would be used to determine what events to watch for.
Oh, I had apparently already written this down in #730
Changes