void TcpNetwork::RunProcessWrite(const int sessionIndex, const SOCKET fd, fd_set& write_set) { if (!FD_ISSET(fd, &write_set)) { return; } auto retsend = FlushSendBuff(sessionIndex); if (retsend.Error != NETWORK_ERROR_CODE::NONE) { CloseSession(SOCKET_CLOSE_CASE::SOCKET_SEND_ERROR, fd, sessionIndex); } }
void TcpNetwork::RunProcessWrite(const int sessionIndex, const SOCKET fd, fd_set & write_set) { auto retSend = FlushSendBuff(sessionIndex); if (retSend.Error != NET_ERROR_CODE::NONE) CloseSession(ServerConfig::SOCKET_CLOSE_CASE::SOCKET_SEND_ERROR, fd, sessionIndex); }