bool sockinfo::try_un_offloading() // un-offload the socket if possible { if (! this->isPassthrough()) { setPassthrough(); handle_close(m_fd, false, true); // will leave it for passthrough } return true; }
UASControlParameters::UASControlParameters(QWidget *parent) : QWidget(parent), ui(new Ui::UASControlParameters) { ui->setupUi(this); ui->btSetCtrl->setStatusTip(tr("Set Passthrough")); connect(ui->btGetCommands, SIGNAL(clicked()), this, SLOT(getCommands())); connect(ui->btSetCtrl, SIGNAL(clicked()), this, SLOT(setPassthrough())); }