-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wayvncctl events #178
wayvncctl events #178
Conversation
Valgrind looks good; no leaks. Manual testing looks good too. |
connection_count_now "$count" | ||
;; | ||
esac | ||
done < <("$WAYVNCCTL" --json event-receive) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be convenient to have an option to write the response to an environment variable so you can skip the read
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to think of how we can do that.
One idea I had was to introduce a "script mode" where a user could run wayvncctl --event-script=/path/to/executable
and then we would run that executable once for every event, with some reasonable calling convention that puts the event details in the env and/or cmdline. But I think I'd want to do that in a separate PR.
Once we start enqueueing asynchronous events, it's more important to send fatal errors (which then disconnect) imediately by prepending them to the send queue. Everything else is still processed FIFO. Signed-off-by: Jim Ramsay <[email protected]>
Signed-off-by: Jim Ramsay <[email protected]>
Includes "client-connect" and "client-disconnect" events as proof-of-concept. Signed-off-by: Jim Ramsay <[email protected]>
Signed-off-by: Jim Ramsay <[email protected]>
Signed-off-by: Jim Ramsay <[email protected]>
Signed-off-by: Jim Ramsay <[email protected]>
42c96b4
to
9df8bc7
Compare
Thanks! |
Adds server->client broadcast events
Read wayvnc.scd and wayvncctl.scd for an overview.
I have read and understood CONTRIBUTING.md and its associated documents.