6 #ifndef _HttpTcpServer_H_ 7 #define _HttpTcpServer_H_ 13 #include <QSslCertificate> 20 #if QT_VERSION > 0x050000 21 #define QINTPTR qintptr void slotEncrypted()
Slot is invoked when the SSL hanshake is complete and connection is established.
Listens for incoming TCP connections, supports plain and ssl connections.
General single-threaded, event-driven HTTP server.
void slotSslErrors(const QList< QSslError > &)
Slot is called when an SSL error occured.
HttpTcpServer(HttpServer *)
Constructor creates the class instance.
QHash< QTcpSocket *, bool > m_verified
Verified status of each socket.
void slotDisconnected()
Slot is invoked when the socket disconnets.
QHash< QTcpSocket *, QSslCertificate > m_peerCert
Peer's certificate of each socket.
QSslCertificate peerCertificate(QTcpSocket *) const
Returns peer's certificate.
Configuration of the http server instance.
bool verified(QTcpSocket *) const
Returns true if the peer's certificate is valid and signed with server's CA certificate.
void incomingConnection(QINTPTR socketDescriptor)
Method is invoked when incoming connection arrived.
Namespace of HTTP server.
void slotPeerVerifyError(const QSslError &)
Slot is called when the peer's certificate is not verified.