| 623 | }; |
| 624 | |
| 625 | bool CNetHandler::RegistSession() |
| 626 | { |
| 627 | if (CNetMgr::Instance()->FindNetItem(this) != NULL) |
| 628 | { |
| 629 | return false; |
| 630 | } |
| 631 | |
| 632 | MtFrame* mtframe = MtFrame::Instance(); |
| 633 | this->_thread = mtframe->GetActiveThread(); |
| 634 | |
| 635 | CNetMgr::Instance()->InsertNetItem(this); |
| 636 | this->_state_flags |= STATE_IN_SESSION; |
| 637 | return true; |
| 638 | } |
| 639 | |
| 640 | void CNetHandler::UnRegistSession() |
| 641 | { |
no test coverage detected