[Libwebsockets] polling for file descriptor i/o
per at bothner.com
Fri Feb 17 18:45:17 CET 2017
ldomterm waits for output from the child process by running select in
a separate thread: See the code in:
This works, but it seems clumsy and wasteful, since lws has its own event
loop using select/poll.
Is there any mechanism to add a file descriptor to the lws event
loop and have a callback function fire when data arrives?
Perhaps this could use a new pseudo-protocol?
(Not a big deal, but maybe worth thinking about if changing
the VFS data structures.)
per at bothner.com http://per.bothner.com/
More information about the Libwebsockets