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 change QTcpServer to http web server?
Qt 6.11 is out! See what's new in the release blog

How to change QTcpServer to http web server?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.6k 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.
  • S Offline
    S Offline
    SpartaWHY117
    wrote on last edited by SpartaWHY117
    #1

    For now ,after several questions , i finally build a distributed system based on qtcpsocket. but here comes big problem , the master node build as a TCP server. But we want to overview data from website , so how to change the tcp server to http server?

    for now ,only two way i have thought of :

    1. add other c++ http webserver library to project handle this . but can't choose the best library to achieve this .
    2. use most frequent use web server framework ,and pass the data to the webserver progress . but in my project ,master get data from slave nodes almost every second ,after some calculation ,then pass the data to webserver progress . but this way seems has much latency . if need choose ,which framework can work well with qt qtcpserver?

    any other solution also be welcomed .

    --------update--------------
    after some search work ,we decided to use qwebsocket to finish the work(most because of need transfer real-time data ) .but here comes the another problem , which data format to choose ?self customized serialized object or json? and can json work with websocket ?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      Hi! Have a look at QHttp it's quite popular.

      S 1 Reply Last reply
      0
      • ? A Former User

        Hi! Have a look at QHttp it's quite popular.

        S Offline
        S Offline
        SpartaWHY117
        wrote on last edited by
        #3

        @Wieland thanks,i will have try.

        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