any1 / neatvnc

A liberally licensed VNC server library with a clean interface
ISC License
126 stars 31 forks source link

server: Support opening on an existing socket fd #111

Closed layercak3 closed 6 months ago

layercak3 commented 6 months ago

Tested with a systemd .socket unit in https://github.com/any1/wayvnc/pull/310

Supersedes: https://github.com/any1/neatvnc/pull/69 Required by: https://github.com/any1/wayvnc/issues/227, https://github.com/any1/wayvnc/pull/310 I have read and understood CONTRIBUTING.md.

layercak3 commented 6 months ago

Force-pushed with a new commit calling it nvnc_open_from_fd (twice, since I forgot to stage changes and was using git-diff without arguments instead of comparing HEAD~ HEAD). I'm interpreting open as "open an nvnc handle", not "open a socket", but anyway the "from" should distinguish it from the others while still keeping the same nvncopen prefix used in the public API.

any1 commented 6 months ago

Thanks!