diff options
-rw-r--r-- | econproxy.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/econproxy.c b/econproxy.c index 206487b..17b4970 100644 --- a/econproxy.c +++ b/econproxy.c @@ -372,7 +372,7 @@ ep_send_frames(struct ep *ep, struct iovec *iov, int iovcnt, uint32_t datasize) set_ip(hdr.IPaddress, sock_get_ipv4_addr(ep->video_fd)); hdr.commandID = 0; - hdr.datasize = datasize; + hdr.datasize = htonl(datasize); write(ep->video_fd, (void *) &hdr, sizeof hdr); writev(ep->video_fd, iov, iovcnt); @@ -525,6 +525,8 @@ rfb_retrieve_framebuffer_update(struct ep *ep, *iovcnt = 1 + i * 2; *psize = datasize; + framebuffer_update->nrects = htons(framebuffer_update->nrects); + return 0; err: |