Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Fetch file/data from remote server via Ethernet / Wlan / localhost connection. What class to use in Qt?

Fetch file/data from remote server via Ethernet / Wlan / localhost connection. What class to use in Qt?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 833 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mike5500
    wrote on last edited by
    #1

    I have a remote system running Python or C++ on Linux or on Windows that generates some data (1MB - 50MB size) that may be stored as a file or as a object in memory. The remote system does not run Qt.

    I want to transfer this data to a file or to an object in memory on a central machine that is running Qt. The central Qt machine will typically ask for data or request to store data on the remote system. The remote system will just do what the central system is asking it to do. (Master slave type of idea).

    Connection can be via Ethernet, WLAN or localhost over TCP/IP. The goal is to separate the GUI part and the data collecting and storing parts of the system. (In certain situations both the data generator and the data receiver may even be on the same host. Then localhost would be used).

    I believe that FTP is an old fashioned way to transfer data? Are there any classes in Qt that could take care of such transfer to and from a remote system that you would recommend to take a look at as an alternative to FTP?

    JonBJ jsulmJ 2 Replies Last reply
    0
    • M Mike5500

      I have a remote system running Python or C++ on Linux or on Windows that generates some data (1MB - 50MB size) that may be stored as a file or as a object in memory. The remote system does not run Qt.

      I want to transfer this data to a file or to an object in memory on a central machine that is running Qt. The central Qt machine will typically ask for data or request to store data on the remote system. The remote system will just do what the central system is asking it to do. (Master slave type of idea).

      Connection can be via Ethernet, WLAN or localhost over TCP/IP. The goal is to separate the GUI part and the data collecting and storing parts of the system. (In certain situations both the data generator and the data receiver may even be on the same host. Then localhost would be used).

      I believe that FTP is an old fashioned way to transfer data? Are there any classes in Qt that could take care of such transfer to and from a remote system that you would recommend to take a look at as an alternative to FTP?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Mike5500
      You might like to have a read of http://www.qtcentre.org/archive/index.php/t-58978.html, and http://doc.qt.io/qt-5/sourcebreaks.html (search for QFtp), while you're waiting for a better Qt expert than I to reply...

      1 Reply Last reply
      0
      • M Mike5500

        I have a remote system running Python or C++ on Linux or on Windows that generates some data (1MB - 50MB size) that may be stored as a file or as a object in memory. The remote system does not run Qt.

        I want to transfer this data to a file or to an object in memory on a central machine that is running Qt. The central Qt machine will typically ask for data or request to store data on the remote system. The remote system will just do what the central system is asking it to do. (Master slave type of idea).

        Connection can be via Ethernet, WLAN or localhost over TCP/IP. The goal is to separate the GUI part and the data collecting and storing parts of the system. (In certain situations both the data generator and the data receiver may even be on the same host. Then localhost would be used).

        I believe that FTP is an old fashioned way to transfer data? Are there any classes in Qt that could take care of such transfer to and from a remote system that you would recommend to take a look at as an alternative to FTP?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Mike5500 You should start here https://doc.qt.io/qt-5.10/qtnetwork-index.html
        Examples: http://doc.qt.io/qt-5/examples-network.html

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        2

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved