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

Method Destroy

adapter/micro_thread/mt_net.cpp:818–831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816}
817
818void CSockLink::Destroy()
819{
820 CDestLinks* dstlink = (CDestLinks*)_parents;
821 if (NULL == dstlink)
822 {
823 MTLOG_ERROR("socket link without parents ptr, maybe wrong");
824 delete this;
825 }
826 else
827 {
828 MTLOG_DEBUG("socket link just free");
829 dstlink->FreeSockLink(this);
830 }
831}
832
833int32_t CSockLink::CreateSock()
834{

Callers 5

InputNotifyMethod · 0.95
OutputNotifyMethod · 0.95
HangupNotifyMethod · 0.95
ResetMethod · 0.45
timer_notifyMethod · 0.45

Calls 1

FreeSockLinkMethod · 0.45

Tested by

no test coverage detected