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

Method HangupNotify

adapter/micro_thread/mt_notify.cpp:232–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232int UdpSessionNtfy::HangupNotify()
233{
234 MtFrame* frame = MtFrame::Instance();
235 frame->KqueueCtrlDel(this->GetOsfd(), this->GetEvents());
236
237 MTLOG_ERROR("sesson obj %p, recv error event. fd %d", this, this->GetOsfd());
238
239 CloseSocket();
240
241 CreateSocket();
242
243 return 0;
244}
245
246int UdpSessionNtfy::KqueueCtlAdd(void* args)
247{

Callers

nothing calls this directly

Calls 3

KqueueCtrlDelMethod · 0.80
GetOsfdMethod · 0.80
GetEventsMethod · 0.80

Tested by

no test coverage detected