Hi, All!

I'm looking into the iocore source code reading now.

I found the source code from PollCont::pollEvent() is a part of
NetHandler::mainNetEvent()
.

And the PollCont is designed to as a abstract class for I/O polling
operation.

so I have a question: why we duplicate the code in mainNetEvent() rather
than call pc->pollEvent(event, e) from NetHandler::mainNetEvent() ?

Is it a special design ? or just for print "NetHandler::mainNetEvent" in
debug log ?

Thanks!

Best Regard,
Oknet Xu

Reply via email to