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. How to create push type stream object from a URL.
Forum Updated to NodeBB v4.3 + New Features

How to create push type stream object from a URL.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.7k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    aashish.lg
    wrote on last edited by
    #1

    Hi All,

    This is my first day when I am going to start my development using qt because it is an excellent framework to develop cross plattform applications.

    As per my first task is concerned I would like to create a push type stream object from a given URL.
    Currently I wrote one application on windows and using one API called "URLOpenStream" from urlmon.dll library.
    How can I achieve the same functionality using qt, because I wanted to run same piece of code in LiNUX too without any code changes.

    Please advice...
    Thanks in advance.

    Regards
    Ashish

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      Well, I'm not quite sure what a push type stream object should be but if it is about downloading files from a remote location you can either use

      • QNetworkAccessManager for HTTP operations or
      • QTcpSocket or QUdpSocket for low-level data transfer.

      In addition you might elaborate your problem so we can give you a better advice.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        aashish.lg
        wrote on last edited by
        #3

        Hi,

        Thanks a lot for your quick response. I have gone through the QNetworkManager and QNetworkReply class docs and found that It will signal me "readReady" whenver be data is available on the network from that URL. Sounds similar to what I am looking for. I have to give a try and then I will come back.

        One more question here is, if I will use QTcpSocket in my client application and suppose if my server has written his implementation using windows socket API, in that case shall I be able to communicate with that server or not.?

        Regards
        Ashish

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qxoz
          wrote on last edited by
          #4

          They should.

          1 Reply Last reply
          0

          • Login

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