MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RegistSession

Method RegistSession

adapter/micro_thread/mt_net.cpp:625–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623};
624
625bool 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
640void CNetHandler::UnRegistSession()
641{

Callers 1

CheckParamsMethod · 0.95

Calls 3

FindNetItemMethod · 0.80
GetActiveThreadMethod · 0.80
InsertNetItemMethod · 0.80

Tested by

no test coverage detected