:私は、データを取得するためにQTcpServerでメソッド名を見つけられませんでしたQTでC++でソケットを介して送受信する方法は?私は、サーバーの場合、この</p> <p>やりたい
QTcpClient client;
client.connect("127.0.0.1", 1440);
client.sendData(myString); // What is the name of the method to do this ???
client.close();
クライアントの場合
QTcpServer qtp;
qtp.listen(QHostAddress::Any, 1440);
qtp.readFromClient(); //What is the name of the method to read the byte from a client ???
qtp.close();
をしてQTcpClientにデータを送信します。それを行うメソッド名は何ですか?
私の答えはあなたを助けましたか? –