Ejemplo n.º 1
0
void CReportCtrl::InsertGroupsClient( int nIndex , ClientList& list )
{
	ClientList::iterator it = list.begin();
	for ( ; it != list.end(); it ++)
	{
		AddClientInfo(&it->second);
	}
}
Ejemplo n.º 2
0
void CHostList::InsertGroupsClient( int nIndex , ClientList& list )
{
	ClientList::iterator it = list.begin();
	for ( ; it != list.end(); it ++)
	{
		int i = AddClientInfo(it->second);

		if (IsAlive(it->second->clientid))
			SetItemColor((int)it->second,RGB(255,0,0));
		else
			SetItemColor((int)it->second,RGB(96,96,96));

		Update(i);
	}
}
Ejemplo n.º 3
0
bool CRMTable::AddClient(DWORD dwConnectionIndex, PACKET_RM_LOGIN* packet)
{
	if (!dwConnectionIndex)
		return FALSE;

	RMCLIENT_INFO* info = new RMCLIENT_INFO;	
	memset(info, 0, sizeof(RMCLIENT_INFO));		

	//접속정보 입력 
	info->bConnectType = RM_TYPE_TOOL;
	info->ConnectionIndex = dwConnectionIndex;
	//Modified by KBS 020330
	info->IPAddress = g_pINet->GetUserAddress(dwConnectionIndex)->sin_addr.s_addr;	//sin_addr.S_un.S_addr;	
	//
	info->dwID = info->IPAddress;
	strcpy(info->szLoginID, packet->ID);
	strcpy(info->szName, packet->Name);

		
	g_pINet->SetServerInfo(dwConnectionIndex,(void*)info);	//DLL에 Listener 정보 주소값 setting 시킴...

	AddClientInfo(info);		//HashTable에 추가
	return true;
}