This commit is contained in:
curtis
2024-11-27 11:21:05 +08:00
parent caa9a4f9df
commit ca411bb07b
4 changed files with 32 additions and 2 deletions

View File

@@ -171,6 +171,24 @@ Item {
return ret;
}
function onExit(){
console.log("1222222222222222");
if(bConnect)
{
clientSocket.writeBytes(getIntArr("2"));
return true;
}
return false;
}
function onConnectAndExit(){
clientSocket.connectToHost();
clientSocket.writeBytes(getIntArr("2"));
}
Component.onCompleted:
{
//BCIManager.signalQmlStopLinkerPrograme.connect(onExit);
}
TcpSocket{
id: clientSocket
peer: "127.0.0.1"