| 485 | } |
| 486 | |
| 487 | void CNetHandler::SwitchToConn() |
| 488 | { |
| 489 | CSockLink* conn = (CSockLink*)this->_conn_ptr; |
| 490 | if (NULL == conn) |
| 491 | { |
| 492 | MTLOG_ERROR("net handler invalid"); |
| 493 | return; |
| 494 | } |
| 495 | |
| 496 | this->DetachConn(); |
| 497 | |
| 498 | this->_state_flags |= STATE_IN_CONNECT; |
| 499 | conn->AppendToList(CSockLink::LINK_CONN_LIST, this); |
| 500 | } |
| 501 | |
| 502 | void CNetHandler::SwitchToSend() |
| 503 | { |
no test coverage detected