bool ListenerSSL::_checkHalt(void) { while (this->_th->TryGet()) { Ticket *t = this->_th->CurTicket; if (t->GetAction() == CORE_HALT_MODULE) { this->_th->Drop("CORE", CORE_HALTED_MODULE); return (true); } } return (false); }
void ListenerSSL::_checkOpenClose(void) { while (this->_th->TryGet()) { Ticket *t = this->_th->CurTicket; if (t->GetAction() == LISTENER_OPENPORT) { if (t->CData->GetType() == "Buffer") this->_openPort(((Buffer *)t->CData)->getDataToInt()); this->_th->Drop("", CORE_DELETE_TICKET); // checker retour } else if (t->GetAction() == LISTENER_CLOSEPORT) { if (t->CData->GetType() == "Buffer") this->_closePort(((Buffer *)t->CData)->getDataToInt()); this->_th->Drop("", CORE_DELETE_TICKET); // checker retour } } }