예제 #1
0
	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);
		}
	}
예제 #2
0
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);
}