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 multithreaded QHttpServer (qt 6.4+)
Forum Updated to NodeBB v4.3 + New Features

How to create multithreaded QHttpServer (qt 6.4+)

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 571 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.
  • A Offline
    A Offline
    acetone
    wrote on last edited by acetone
    #1

    Hi!

    QTcpServer has proven ways to make a multithreaded server (something like QTcpSocketRunnable). What is the best way to provide multithreading with the QHttpServer introduced with QT 6.4?

    I assume that QHttpServer is a descendant of QTcpServer and is essentially single-threaded. Is it possible to create an object inherited from QRunnable when (after) handling routers? The question is how to return QHttpServerResponse from it.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      acetone
      wrote on last edited by
      #2

      Oh sorry. Documentation explain it: https://doc.qt.io/qt-6/qhttpserver.html#route

      1 Reply Last reply
      1
      • A acetone has marked this topic as solved on

      • Login

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