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

Method InsertNetItem

adapter/micro_thread/mt_net.cpp:1609–1623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1607}
1608
1609void CNetMgr::InsertNetItem(CNetHandler* item)
1610{
1611 if (NULL == this->_session_hash)
1612 {
1613 return;
1614 }
1615
1616 int32_t ret = _session_hash->HashInsert(item);
1617 if (ret < 0)
1618 {
1619 MTLOG_ERROR("session insert failed, ret %d", ret);
1620 }
1621
1622 return;
1623}
1624
1625void CNetMgr::RemoveNetItem(CNetHandler* item)
1626{

Callers 1

RegistSessionMethod · 0.80

Calls 1

HashInsertMethod · 0.80

Tested by

no test coverage detected