removed virtual from ~Sttp()

This commit is contained in:
hyung-hwan 2018-07-20 14:56:00 +00:00
parent f104855427
commit 52baa3222f
3 changed files with 8 additions and 8 deletions

View File

@ -60,7 +60,7 @@ public:
}; };
Sttp (Transmittable* s = QSE_NULL, Mmgr* mmgr = QSE_NULL) QSE_CPP_NOEXCEPT; 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; void reset () QSE_CPP_NOEXCEPT;

View File

@ -41,7 +41,7 @@ Sttp::Sttp (Transmittable* s, Mmgr* mmgr) QSE_CPP_NOEXCEPT: Mmged(mmgr), p_mediu
this->reset (); this->reset ();
} }
Sttp::~Sttp () Sttp::~Sttp () QSE_CPP_NOEXCEPT
{ {
} }

View File

@ -40,7 +40,7 @@ public:
QSE::SttpCmd cmd; QSE::SttpCmd cmd;
while (!server->isStopRequested()) while (!server->isStopRequested())
{ {
int n = sttp.receiveCmd(cmd); int n = sttp.receiveCmd(&cmd);
if (n <= -1) if (n <= -1)
{ {
qse_printf (QSE_T("%s[%zu] -> got error\n"), addrbuf, worker->getWid()); qse_printf (QSE_T("%s[%zu] -> got error\n"), addrbuf, worker->getWid());
@ -48,9 +48,12 @@ public:
} }
else if (n == 0) break; else if (n == 0) break;
if (cmd.name == QSE_T("quit")) break;
g_prt_mutex.lock(); 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(); g_prt_mutex.unlock();
sttp.sendCmd(cmd);
} }
g_prt_mutex.lock(); g_prt_mutex.lock();
@ -94,10 +97,7 @@ static int test1 (void)
} }
else if (n == 0) break; else if (n == 0) break;
if (cmd.name == QSE_T("quit")) if (cmd.name == QSE_T("quit")) break;
{
break;
}
g_prt_mutex.lock(); g_prt_mutex.lock();
qse_printf (QSE_T("%s<%zu> --> received command %s\n"), addrbuf, worker->getWid(), cmd.name.getBuffer()); qse_printf (QSE_T("%s<%zu> --> received command %s\n"), addrbuf, worker->getWid(), cmd.name.getBuffer());