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

Method AppendToList

adapter/micro_thread/mt_net.cpp:677–687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675}
676
677void CSockLink::AppendToList(int32_t type, CNetHandler* item)
678{
679 TNetItemList* list = this->GetItemList(type);
680 if (NULL == list)
681 {
682 MTLOG_ERROR("unknown list type: %d", type);
683 return;
684 }
685
686 TAILQ_INSERT_TAIL(list, item, _link_entry);
687}
688
689void CSockLink::RemoveFromList(int32_t type, CNetHandler* item)
690{

Callers 4

SwitchToConnMethod · 0.80
SwitchToSendMethod · 0.80
SwitchToRecvMethod · 0.80
SwitchToIdleMethod · 0.80

Calls 1

GetItemListMethod · 0.95

Tested by

no test coverage detected