Ejemplo n.º 1
0
static void* st_WaitEeventThreadProc(void* lpParam)
{
	NetClient* pClientThis = (NetClient*)lpParam;
	int sockeId = pClientThis->GetSockId();
	std::string recvStr;
	while (!pClientThis->GetShutDown())
	{
		recvStr.clear();
		fu_socket_recv(sockeId, recvStr);
		if (!recvStr.empty())
		{
			pClientThis->NotifyRecvText(recvStr.c_str(), recvStr.length());
		}
	}
	return 0;
}