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

Method GetItemList

adapter/micro_thread/mt_net.cpp:649–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649TNetItemList* CSockLink::GetItemList(int32_t type)
650{
651 TNetItemList* list = NULL;
652 switch (type)
653 {
654 case LINK_IDLE_LIST:
655 list = &this->_idle_list;
656 break;
657
658 case LINK_CONN_LIST:
659 list = &this->_wait_connect;
660 break;
661
662 case LINK_SEND_LIST:
663 list = &this->_wait_send;
664 break;
665
666 case LINK_RECV_LIST:
667 list = &this->_wait_recv;
668 break;
669
670 default:
671 break;
672 }
673
674 return list;
675}
676
677void CSockLink::AppendToList(int32_t type, CNetHandler* item)
678{

Callers 2

AppendToListMethod · 0.95
RemoveFromListMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected