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

Method Reset

adapter/micro_thread/mt_net.cpp:179–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void CNetHandler::Reset()
180{
181 this->Unlink();
182 this->UnRegistSession();
183
184 if (_rsp_buff != NULL) {
185 delete_sk_buffer(_rsp_buff);
186 _rsp_buff = NULL;
187 }
188
189 _thread = NULL;
190 _proto_type = NET_PROTO_TCP;
191 _conn_type = TYPE_CONN_SESSION;
192 _dest_ipv4.sin_addr.s_addr = 0;
193 _dest_ipv4.sin_port = 0;
194 _session_id = 0;
195 _callback = NULL;
196 _err_no = 0;
197 _state_flags = 0;
198 _conn_ptr = NULL;
199 _send_pos = 0;
200 _req_len = 0;
201 _req_data = NULL;
202
203}
204
205CNetHandler::CNetHandler()
206{

Callers 10

CNetHandlerMethod · 0.95
~CNetHandlerMethod · 0.95
FreeNtfyObjMethod · 0.45
mt_msg_sendrcvMethod · 0.45
~CNetHelperMethod · 0.45
~CSockLinkMethod · 0.45
~CDestLinksMethod · 0.45
FreeSockLinkMethod · 0.45
DeleteDestLinkMethod · 0.45
FreeMsgBufMethod · 0.45

Calls 10

UnlinkMethod · 0.95
UnRegistSessionMethod · 0.95
CloseMethod · 0.95
NotifyAllMethod · 0.95
delete_sk_bufferFunction · 0.85
rw_cache_destroyFunction · 0.85
mt_time_msFunction · 0.85
GetTimerMngMethod · 0.80
stop_timerMethod · 0.80
DestroyMethod · 0.45

Tested by

no test coverage detected