mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-11-29 18:37:41 +08:00
test qtfiber demo.
This commit is contained in:
parent
d7b569c102
commit
baa76b07d9
@ -107,6 +107,7 @@ void MainWindow::onStartServer()
|
||||
|
||||
ui_->stopServer->setEnabled(true);
|
||||
ui_->startClient->setEnabled(true);
|
||||
ui_->startServer->setEnabled(false);
|
||||
|
||||
server_ = new fiber_server("127.0.0.1", 9001, this);
|
||||
qDebug() << "Start fiber server";
|
||||
@ -120,6 +121,7 @@ void MainWindow::onStopServer()
|
||||
server_->stop();
|
||||
delete server_;
|
||||
server_ = nullptr;
|
||||
ui_->startServer->setEnabled(true);
|
||||
ui_->stopServer->setEnabled(false);
|
||||
ui_->startClient->setEnabled(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user