any1 / neatvnc

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

server: Support opening on an existing socket fd #111

Closed layercak3 closed 1 month ago

layercak3 commented 1 month 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 1 month 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 1 month ago

Thanks!