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

Method Reset

adapter/micro_thread/mt_connection.cpp:60–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void IMtConnection::Reset()
61{
62 if (_ntfy_obj) {
63 NtfyObjMgr::Instance()->FreeNtfyObj(_ntfy_obj);
64 _ntfy_obj = NULL;
65 }
66
67 if (_msg_buff) {
68 MsgBuffPool::Instance()->FreeMsgBuf(_msg_buff);
69 _msg_buff = NULL;
70 }
71
72 _action = NULL;
73 _ntfy_obj = NULL;
74 _msg_buff = NULL;
75}
76
77int UdpShortConn::CreateSocket()
78{

Callers 2

FreeTcpKeepConnMethod · 0.45
FreeConnectionMethod · 0.45

Calls 3

memsetFunction · 0.85
FreeNtfyObjMethod · 0.80
FreeMsgBufMethod · 0.45

Tested by

no test coverage detected