✋
This commit is contained in:
		| @@ -52,7 +52,7 @@ void Connection::getPacks(SOCKET sock) { | ||||
| 	Input in; | ||||
| 	Sync sync; | ||||
| 		lsPck = recvPacksFrom(sock, &m_buf, m_addr); | ||||
|  | ||||
| 		std::cout << "a"; | ||||
| 		for (auto& pck : lsPck) { | ||||
| 			uint32_t bsize = m_buf.len - (pck - m_buf.ptr); | ||||
| 			switch (netprot::getType(pck, 1)) { | ||||
| @@ -74,13 +74,15 @@ void Connection::getPacks(SOCKET sock) { | ||||
| } | ||||
|  | ||||
| void Connection::sendPacks(SOCKET sock, std::unordered_map<uint64_t, Connection*> conns) { | ||||
| 	while (m_last_out < m_output_manifest.size()) { | ||||
| 		Output out = m_output_vector.at(m_last_out++); | ||||
| 	while (!m_output_vector.empty()) { | ||||
| 		std::cout << "c"; | ||||
| 		Output out = m_output_vector.front(); | ||||
| 		for (auto& [key, conn] : conns) { | ||||
| 			if (m_playinfo.id == conn->GetHash(false)) | ||||
| 				continue; | ||||
| 			sendPackTo<Output>(sock, &out, &m_bufout, conn->getAddr()); | ||||
| 		} | ||||
| 		m_output_vector.pop_front(); | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user