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

Method SwitchToIdle

adapter/micro_thread/mt_net.cpp:532–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532void CNetHandler::SwitchToIdle()
533{
534 CSockLink* conn = (CSockLink*)this->_conn_ptr;
535 if (NULL == conn)
536 {
537 MTLOG_ERROR("net handler invalid");
538 return;
539 }
540
541 this->DetachConn();
542
543 this->_state_flags |= STATE_IN_IDLE;
544 conn->AppendToList(CSockLink::LINK_IDLE_LIST, this);
545}
546
547void CNetHandler::DetachConn()
548{

Callers 9

WaitConnectMethod · 0.95
WaitSendMethod · 0.95
WaitRecvMethod · 0.95
LinkMethod · 0.95
SendCacheUdpMethod · 0.80
SendCacheTcpMethod · 0.80
DispathTcpMethod · 0.80
DispathUdpMethod · 0.80
OutputNotifyMethod · 0.80

Calls 2

DetachConnMethod · 0.95
AppendToListMethod · 0.80

Tested by

no test coverage detected