Ejemplo n.º 1
0
void GIOCPsocket::OnDestroyClientSvr(const DWORD dwClientContext)
{
	GPFNDATA_SVR temp_gpfndata_svr;
	ZeroMemory(&temp_gpfndata_svr,sizeof(GPFNDATA_SVR));
	((GIOCPsocket*)GHndDat_GetOwner((DWORD)GHndDat_GetOwner(dwClientContext)))->m_GPfnData_SVR_HashManager.FindItem((DWORD)GHndDat_GetOwner(dwClientContext),temp_gpfndata_svr);
	temp_gpfndata_svr.pfnOnGSockDestroyClientSvr(dwClientContext,temp_gpfndata_svr.dwInstaned);
}
Ejemplo n.º 2
0
void GIOCPsocket::OnSendErrorSvr(const DWORD dwClientContext, const char* pBuf, const DWORD dwBytes)
{
	GPFNDATA_SVR temp_gpfndata_svr;
	ZeroMemory(&temp_gpfndata_svr,sizeof(GPFNDATA_SVR));
	((GIOCPsocket*)GHndDat_GetOwner((DWORD)GHndDat_GetOwner(dwClientContext)))->m_GPfnData_SVR_HashManager.FindItem((DWORD)GHndDat_GetOwner(dwClientContext),temp_gpfndata_svr);
	temp_gpfndata_svr.pfnOnGSockSendErrorSvr(dwClientContext,pBuf,dwBytes,temp_gpfndata_svr.dwInstaned);
}
Ejemplo n.º 3
0
void GIOCPsocket::OnSendErrorClt(const DWORD dwClientContext, const char* pBuf, const DWORD dwBytes)
{
	GPFNDATA_CLT temp_gpfndata_clt;
	ZeroMemory(&temp_gpfndata_clt,sizeof(GPFNDATA_CLT));
	((GIOCPsocket*)GHndDat_GetOwner(dwClientContext))->m_GPfnData_CLT_HashManager.FindItem(dwClientContext,temp_gpfndata_clt);
	temp_gpfndata_clt.pfnOnGSockSendErrorClt(dwClientContext,pBuf,dwBytes,temp_gpfndata_clt.dwInstaned);
}
Ejemplo n.º 4
0
void GIOCPsocket::OnDisconnectClt(const DWORD dwClientContext)
{
	GPFNDATA_CLT temp_gpfndata_clt;
	ZeroMemory(&temp_gpfndata_clt,sizeof(GPFNDATA_CLT));
	((GIOCPsocket*)GHndDat_GetOwner(dwClientContext))->m_GPfnData_CLT_HashManager.FindItem(dwClientContext,temp_gpfndata_clt);
	temp_gpfndata_clt.pfnOnGSockDisconnectClt(dwClientContext,temp_gpfndata_clt.dwInstaned);
}
Ejemplo n.º 5
0
BOOL CBusinessManage_GISTerminal::GisTer_All(const DWORD dwInstance, const DWORD dwSrcClientContext, const DWORD dwClientContext)
{	
	CBusinessManage_GISTerminal* pInstance = (CBusinessManage_GISTerminal*)dwInstance;

	if (GHndDat_GetOwner(dwClientContext) != gPGisMainCtrlProc.g_dwGISTerminalContext || dwSrcClientContext == dwClientContext)
	{
		return FALSE;
	}

	return TRUE;
}
Ejemplo n.º 6
0
BOOL CBusinessManage_GISTerminal::GISTer_DeptNum_Char(const DWORD dwInstance, const DWORD dwSrcClientContext, const DWORD dwClientContext, const char *szchar)
{	
	CBusinessManage_GISTerminal* pInstance = (CBusinessManage_GISTerminal*)dwInstance;

	if (GHndDat_GetOwner(dwClientContext) != gPGisMainCtrlProc.g_dwGISTerminalContext || dwSrcClientContext == dwClientContext)
	{
		return FALSE;
	}

	DATA_GISTERMINAL temp_DATA_GISTERMINAL_CRL;
	pInstance->m_HashmapDataGISTerminal.FindItem(dwClientContext,temp_DATA_GISTERMINAL_CRL);

	if (0 == strcmp(szchar,temp_DATA_GISTERMINAL_CRL.szDeptNum) || 0 == strcmp("0000",temp_DATA_GISTERMINAL_CRL.szDeptNum))
	{
		return TRUE;
	}

	return FALSE;
}