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. Closing QHttpServer
Qt 6.11 is out! See what's new in the release blog

Closing QHttpServer

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 561 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.
  • W Offline
    W Offline
    WallPulse
    wrote on last edited by
    #1

    Hi all, I am using a QHttpServer in my code and would like to close any open connections or kill the server after I have finished processing the data recieved in a request but looking through the documentation it doesn't seem like there is any way to close connections or kill the server?

    I tried to use the delete keyword on the server but that doesn't seem to accomplish what I am looking for and there is no close() member function?

    Will I have to use a QTCPServer instead to access this functionality or am I missing something obvious?

    Christian EhrlicherC 1 Reply Last reply
    0
    • W WallPulse

      Hi all, I am using a QHttpServer in my code and would like to close any open connections or kill the server after I have finished processing the data recieved in a request but looking through the documentation it doesn't seem like there is any way to close connections or kill the server?

      I tried to use the delete keyword on the server but that doesn't seem to accomplish what I am looking for and there is no close() member function?

      Will I have to use a QTCPServer instead to access this functionality or am I missing something obvious?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @WallPulse But every connection you open has a close() function which you can call.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      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