LibVNC / libvncserver

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
GNU General Public License v2.0
1.11k stars 484 forks source link

libvncclient: add hooks for custom socket I/O #477

Open tobydox opened 3 years ago

tobydox commented 3 years ago

This allows using libvncclient on any kind of custom transport, e.g. for TLS tunneling via a special TLS socket implementation. May be the function pointer / hook names can be improved to better reflect the actual purpose.

bk138 commented 3 years ago

Am currently on vacation, can review end of July - how does this relate to / replace #234?

tobydox commented 3 years ago

It's related partially only since it proposes changes to the RFB protocol for negotiating TLS. This PR is much more generic and not even TLS related, TLS is just a use case.

bk138 commented 2 years ago

IIRC this is about generic tunneling, an example of how to make use of this would be super helpful.

GregorWaltzR commented 1 year ago

I need a connect hook to negotiate with a proxy server before handing the connection to libvncclient. I rolled my own before seeing this one. The ConnectToRFBServer hook proposed here would meet my need.