How to write commands to qsslsocket, so it can read?
Unsolved
General and Desktop
-
So I've got a ftp server and a client. The server reads the commands sent from client with
(QSslSocket *socket;
)socket->readLine()
.But I want to give commands from server so I should write a string to socket so it can read and process.
How can I do that? thanks in advance.
-
Hi
Is there a reason you can't use
https://doc.qt.io/qt-6/qsslsocket.html#writeData -
@mrjj writeData's purpose is sending data to client I think.
Ftp client sends commands with
ftpClient.submitEvent("command")
.I couldn't find anything can be used in place of
ftpClient.submitEvent("command")
from the server, I think it is not designed to do this so I will seek another solutions.I will try to update if I can find anything related/can be used.