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

Method SwitchToSend

adapter/micro_thread/mt_net.cpp:502–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502void CNetHandler::SwitchToSend()
503{
504 CSockLink* conn = (CSockLink*)this->_conn_ptr;
505 if (NULL == conn)
506 {
507 MTLOG_ERROR("net handler invalid");
508 return;
509 }
510
511 this->DetachConn();
512
513 this->_state_flags |= STATE_IN_SEND;
514 conn->AppendToList(CSockLink::LINK_SEND_LIST, this);
515}
516
517void CNetHandler::SwitchToRecv()
518{

Callers 1

WaitSendMethod · 0.95

Calls 2

DetachConnMethod · 0.95
AppendToListMethod · 0.80

Tested by

no test coverage detected