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. Qt proxy usage
Forum Updated to NodeBB v4.3 + New Features

Qt proxy usage

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 764 Views 2 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.
  • I Offline
    I Offline
    imaqt 0
    wrote on 1 Mar 2019, 16:54 last edited by imaqt 0 3 Jan 2019, 17:16
    #1

    I have a qt class that connects to a website. How can I use qt proxy functionality to have multiple instances of the class connect to said website with a different proxy?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kent-Dorfman
      wrote on 1 Mar 2019, 18:21 last edited by Kent-Dorfman 3 Jan 2019, 18:23
      #2

      proxy is a generic term. whos proxy and what type of proxy?

      round-robin dns on the server end?
      proxy internet gateway your client goes through?

      outgoing gateways proxys exist to protect the net and limit bandwidth. Are you trying to steal more bandwidth?

      1 Reply Last reply
      0
      • I Offline
        I Offline
        imaqt 0
        wrote on 1 Mar 2019, 18:31 last edited by
        #3

        @Kent-Dorfman said in Qt proxy usage:

        round-robin dns

        Say I have two objects of that class, Object A and B trying to connect to website W, and two proxy servers 1 and 2. I want A to connect to W through 1 and B to connect to W through 2.

        P 1 Reply Last reply 1 Mar 2019, 19:43
        0
        • I imaqt 0
          1 Mar 2019, 18:31

          @Kent-Dorfman said in Qt proxy usage:

          round-robin dns

          Say I have two objects of that class, Object A and B trying to connect to website W, and two proxy servers 1 and 2. I want A to connect to W through 1 and B to connect to W through 2.

          P Offline
          P Offline
          Pablo J. Rogina
          wrote on 1 Mar 2019, 19:43 last edited by
          #4

          @imaqt-0 that's a quite unusual requirement, in general using different proxies depends on reaching different websites (i.e. website W is accessible via proxy 1 and website X is accessible via proxy 2)

          Anyway, you can use a QNetWorkAccessManager object as member of your class, so on instantiation you then set the desired/required proxy to each object with QNetWorkAccessManager::setProxy()

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          1

          1/4

          1 Mar 2019, 16:54

          • Login

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