You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ft-protocol-problems.txt 1.3KB

1234567891011121314151617181920212223242526272829303132333435
  1. From: Peter Rosin <peda@lysator.liu.se>
  2. To: vnc-tight-list@lists.sourceforge.net
  3. Date: Thu, 25 Sep 2008 10:21:07 +0200
  4. Message-ID: <48DB49F3.6030609@lysator.liu.se>
  5. Subject: Problems with timestamps in file transfers.
  6. Hi list!
  7. I'm writing some VNC client software that supports the the file
  8. transfer extensions described in the rfbtight.tex document in
  9. the svn repo. However, when I communicate with a TightVNC server
  10. version 1.3.9 (WinVNC.exe) I get strange data for the modification
  11. times of the files.
  12. Specifically, in the FileListData message, I have understood
  13. that directories are encoded as <size ~0, mod-time 0>. For
  14. regular files I get the expected size, but the mod-time is
  15. always 0xffffffe7 (-25) which seem totally bogus.
  16. The next problem is more disturbing since you will get interop
  17. problems if you fix it. In the last FileDownloadData message
  18. (the one with raw-length = compressed-length = 0), the mod-time
  19. is transmitted in little-endian byte order (at least my TightVNC
  20. server does so). Since it's more problems fixing this than
  21. documenting it, I think this endianness issue should be recorded
  22. in the rfbtight.tex file.
  23. (However, when you use FileUploadData you should transmit
  24. the mod-time in the expected big-endian network byte order.)
  25. Cheers,
  26. Peter
  27. ==================================================================