Does anyone knows how to add extra data frame along with video frames in vnc communication. Both client and server will be handled by me. And also how to do encode and decode that extra data frame at both the sides.
Any help would be appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The best reference I’ve found on the RFB (VNC) protocol is: http://tigervnc.org/cgi-bin/rfbproto
You have a couple of general directions.
If you don’t mind extending the protocol, then you can just add new message types to your protocol (since you control both ends). See the clientcuttext and servercuttext as examples of existing messages for sending an arbitrary amount of data in either direction. The disadvantage is that if your client or server is connected to be a different client or server then this will cause a fatal error.
Another option is to extend an existing message in a backwards compatible way. For example, you could send client to server message by sending mouse events that are outside the viewport (and then sending a final mouse event that is back inside at the real location). You could send server to client messages by sending frame buffer updates that are outside the viewport. That won’t be displayed by normal clients.