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

Method ~CNetHelper

adapter/micro_thread/mt_net.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41CNetHelper::~CNetHelper()
42{
43 CNetHandler* net_handler = (CNetHandler*)handler;
44 if (handler != NULL)
45 {
46 net_handler->Reset();
47 CNetMgr::Instance()->FreeNetItem(net_handler);
48 handler = NULL;
49 }
50}
51
52int32_t CNetHelper::SendRecv(void* data, uint32_t len, uint32_t timeout)
53{

Callers

nothing calls this directly

Calls 2

FreeNetItemMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected