Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to change QTcpServer to http web server?
SpartaWHY117 last edited by SpartaWHY117
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
for now ,only two way i have thought of :
- add other
c++ http webserver libraryto project handle this . but can't choose the best library to achieve this .
- 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
any other solution also be welcomed .
after some search work ,we decided to use
qwebsocketto 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 ?
- add other
A Former User last edited by A Former User
Hi! Have a look at QHttp it's quite popular.
SpartaWHY117 last edited by
@Wieland thanks，i will have try.