Skip to content
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

[Question] Where is the frame actually sent to client in code? #134

Closed
dobber1611 opened this issue Oct 20, 2016 · 6 comments
Closed

[Question] Where is the frame actually sent to client in code? #134

dobber1611 opened this issue Oct 20, 2016 · 6 comments

Comments

@dobber1611
Copy link

I'm looking for away to generate a digest on the frame data that is sent to the client, before it is sent, but I cant seen to find where the data is stored and/or sent. Any help would be appreciated, Thanks.

@bk138
Copy link
Member

bk138 commented Oct 22, 2016

/*

  • rfbSendFramebufferUpdate - send the currently pending framebuffer update to
  • the RFB client.
  • givenUpdateRegion is not changed.
    */

rfbBool
rfbSendFramebufferUpdate(rfbClientPtr cl,
sraRegionPtr givenUpdateRegion)

@bk138
Copy link
Member

bk138 commented Oct 22, 2016

That is in rfbserver.c. HTH!

@dobber1611
Copy link
Author

Thanks for the recommendation. I see that the frames are sent in rfbWriteExact the socket.c, and that it will send the frame data in pieces, if we understand the method correctly. Is there a place where we can access the full frame that will be sent across? We are trying to generate a digest on the frame, and need access to the whole frame data.

@bk138
Copy link
Member

bk138 commented Oct 24, 2016

You mean contents of the whole framebuffer? That is almost never sent
completely, only if the client requests it IIRC. Most of the time, partial
updates are sent.

@dobber1611
Copy link
Author

The partial updates are all I need. Basically, I would like the frame update data that is being sent to the client, whether its an rectangle, full frame, etc. Currently we are looking in rfbWriteExact, which stores the message buffer that will be sent, but that also includes header data. We would like to know where the frame is stored without the header data. Does that make more sense? Sorry for the confusion.

Perhaps an explanation what I'm trying to do will help. I am trying to generate a sha256 digest on the frame data that are being sent to the client. There the client will also generate a digest, and send it back, for verification that the data being displayed on the client are correct.

Once again, thanks for your help.

@bk138
Copy link
Member

bk138 commented Oct 25, 2016

Am Sun, 23 Oct 2016 15:21:05 -0700
schrieb dobber1611 notifications@github.com:

Thanks for the recommendation. I see that the frames are sent in
rfbWriteExact the socket.c, and that it will send the frame data in pieces,
if we understand the method correctly. Is there a place where we can access
the full frame that will be sent across? We are trying to generate a digest
on the frame, and need access to the whole frame data.

You mean contents of the whole framebuffer? That is almost never sent
completely, only if the client requests it IIRC. Most of the time, partial
updates are sent.

@bk138 bk138 closed this as completed Jun 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants