Results 1 to 4 of 4

Thread: Read a file from server which is constantly modifying

  1. #1
    Join Date
    Jun 2019
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Read a file from server which is constantly modifying

    Hi, I am new to QT

    what I am trying to do is reading a file from server using qtcpserver and socket.

    It works fine but the twist is the file on the server side is constantly modifying , how can we automatically update the file on the client side... any thoughts??

  2. #2
    Join Date
    Jul 2012
    Posts
    244
    Thanks
    27
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Read a file from server which is constantly modifying

    Periodically probe it for modifications, say by sending a HTTP request and checking for its cache date?

  3. #3
    Join Date
    Jun 2019
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Read a file from server which is constantly modifying

    can you explain with some psuedo code?

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Read a file from server which is constantly modifying

    What kind of server : FTP, HTTP, Samba, specilized with API or another type ?

Similar Threads

  1. Replies: 1
    Last Post: 17th December 2015, 11:26
  2. Constantly Update QFile read
    By digimonkey in forum Qt Programming
    Replies: 3
    Last Post: 4th November 2014, 10:18
  3. Replies: 6
    Last Post: 7th October 2012, 17:42
  4. Replies: 2
    Last Post: 29th September 2012, 21:22
  5. Modifying file with Qt
    By afail in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2009, 15:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.