removed virtual from ~Sttp()
This commit is contained in:
parent
f104855427
commit
52baa3222f
@ -60,7 +60,7 @@ public:
|
||||
};
|
||||
|
||||
Sttp (Transmittable* s = QSE_NULL, Mmgr* mmgr = QSE_NULL) QSE_CPP_NOEXCEPT;
|
||||
virtual ~Sttp () QSE_CPP_NOEXCEPT;
|
||||
~Sttp () QSE_CPP_NOEXCEPT;
|
||||
|
||||
void reset () QSE_CPP_NOEXCEPT;
|
||||
|
||||
|
@ -41,7 +41,7 @@ Sttp::Sttp (Transmittable* s, Mmgr* mmgr) QSE_CPP_NOEXCEPT: Mmged(mmgr), p_mediu
|
||||
this->reset ();
|
||||
}
|
||||
|
||||
Sttp::~Sttp ()
|
||||
Sttp::~Sttp () QSE_CPP_NOEXCEPT
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
QSE::SttpCmd cmd;
|
||||
while (!server->isStopRequested())
|
||||
{
|
||||
int n = sttp.receiveCmd(cmd);
|
||||
int n = sttp.receiveCmd(&cmd);
|
||||
if (n <= -1)
|
||||
{
|
||||
qse_printf (QSE_T("%s[%zu] -> got error\n"), addrbuf, worker->getWid());
|
||||
@ -48,9 +48,12 @@ public:
|
||||
}
|
||||
else if (n == 0) break;
|
||||
|
||||
if (cmd.name == QSE_T("quit")) break;
|
||||
|
||||
g_prt_mutex.lock();
|
||||
qse_printf (QSE_T("received command %s\n"), cmd.name);
|
||||
qse_printf (QSE_T("received command %s\n"), cmd.name.getBuffer());
|
||||
g_prt_mutex.unlock();
|
||||
sttp.sendCmd(cmd);
|
||||
}
|
||||
|
||||
g_prt_mutex.lock();
|
||||
@ -94,10 +97,7 @@ static int test1 (void)
|
||||
}
|
||||
else if (n == 0) break;
|
||||
|
||||
if (cmd.name == QSE_T("quit"))
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (cmd.name == QSE_T("quit")) break;
|
||||
|
||||
g_prt_mutex.lock();
|
||||
qse_printf (QSE_T("%s<%zu> --> received command %s\n"), addrbuf, worker->getWid(), cmd.name.getBuffer());
|
||||
|
Loading…
Reference in New Issue
Block a user