I would like to use the QHttp class for my http server implementation. But the documentation for qt 4.6 says its obsolete. Is there any other class which I can use for my use-case ?
I would like to use the QHttp class for my http server implementation. But the documentation for qt 4.6 says its obsolete. Is there any other class which I can use for my use-case ?
From the QHttp docs:You perhaps want to look at QTcpServer for the server side of the equation though.However, for new applications, it is recommended to use QNetworkAccessManager and QNetworkReply, as those classes possess a simpler, yet more powerful API and a more modern protocol implementation.
Try QTcpSocket, QNetworkAccessManager or QTcpServer.
Edit: Posted to late...
I would like to allow the client to download files from such a server ... will qtcpserver be helpful for this ?
If your program is the client then QNetworkAccessManager and QNetworkReply
If your program is the server then QTcpServer
Is there a qt example app which does file hosting using QTcpServer ?
Have you actually looked at the QTcpServer docs?
Bookmarks