Hi,
I'm looking for a sample of an http server written in QT that has just to receive a POST with a JPG image and send back another JPG image.
At the moment I set up a QTcpServer that can accept the connection
QTcpSocket *clientConnection
= tcpServer
->nextPendingConnection
();
connect(clientConnection, SIGNAL(disconnected()),
clientConnection, SLOT(deleteLater()));
clientConnection->waitForReadyRead(2000);
qint64 byteAvail = clientConnection->bytesAvailable();
QTcpSocket *clientConnection = tcpServer->nextPendingConnection();
connect(clientConnection, SIGNAL(disconnected()),
clientConnection, SLOT(deleteLater()));
clientConnection->waitForReadyRead(2000);
qint64 byteAvail = clientConnection->bytesAvailable();
To copy to clipboard, switch view to plain text mode
And I see I'm getting there are bytes available to read,
so my questions:
- Is there some sample aroung a bout implementing an HTTP Server ?
- How can I get the data and unwrap the HTTP packet, just when I know I received all?
Thanks a lot in advance
Bye
Bookmarks