调用后QSslSocket::startServerEncryption()
,是否可以立即将socket当作普通的QTcpSocket使用,从中读写数据,还是需要先调用waitForStartEncrypted()
才能使用?
socket->startServerEncryption();
socket->waitForEncrypted(); // <==== Is this line necessary?
socket->write(data);
QByteArray response = socket->read();