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 767 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 last edited by imaqt 0
    #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
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by Kent-Dorfman
      #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 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.

        Pablo J. RoginaP 1 Reply Last reply
        0
        • I imaqt 0

          @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.

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on 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

          • Login

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