-
-
Notifications
You must be signed in to change notification settings - Fork 78
Android: Integrate native LibVNCClient #56
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
Android: Integrate native LibVNCClient #56
Conversation
This is a wrapper around native rfbClient.
|
Marking it as WIP. |
|
Yeah you definitely took over the fun part ;-). Anyway, will review ASAP, time permitting. |
|
@bk138 Should I implement support for different pixel formats? Currently 24 bit color is supported. |
I deem LibVNC/libvncserver#347 more important as it renders viewers useless for users in certain cases (vino + gnutls >= 3.6 I suspect). |
|
I was only asking about allowing user to choose different pixel formats with native rfbClient like we currently do. Your comment in I will pause work on this PR untill your initial review and focus on the TLS issue for now. |
cf95690 to
339c159
Compare
1. Now we make only one JNI call to retrieve info. 2. It is more scalable. Adding new fields to 'ConnectionInfo' is much easier.
339c159 to
81c31c5
Compare
|
This is ready for now. Further work will depend on the feedback. |
This constructor is only invoked from native code. Hence compiler thinks this is redundant and removes it.
|
I've now taken a different approach with 62c2cc6, the work in here was nevertheless very helpful, thanks a lot @gujjwal00 ! |
|
No problem! Happy to see it land. One suggestion I have is to initialize rfbClient pointer in constructor of VNCConn. That way you can drop many null pointer checks. |
This PR adds more support for native LibVNCClient.
There are some issues but I was so excited about this and couldn't wait (sorry 🤠).
Also, I wanted to get your feedback about it.
PR Summary
NativeRfbClientwhich is a wrapper around nativerfbClient.NativeRfbClientfor VNC connection instead of currentRFBProtoWhat works:
Notes:
android-native-libvncclient-4which is currently behindmaster.