Runs through the _hzGlobal_setEmaddrs, looking for invalid entires
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | IntegEmaddrSet | (bool,) |
Declared in file: hzEmaddr.h
Defined in file : hzEmaddr.cpp
Function Logic:
Function body:
hzEcode IntegEmaddrSet (bool bVerbose)
{
// Runs through the _hzGlobal_setEmaddrs, looking for invalid entires
_hzfunc(__func__) ;
hzLogger* pLog ; // Log file
_ema_space* pCtrl ; // This string's control area
// _ssrFLE* pSlot ; // Item cast to _ssrFLE (to self point on free and to check it is not already free)
hzEmaddr ema ; // Email address
uint32_t n ; // Iterator
uint32_t addr ; // Internal address
uint32_t nFail ; // Number of invalid addresses
uint32_t nPass ; // Number of invalid addresses
pLog = GetThreadLogger() ;
for (n = nPass = nFail = 0; n < _hzGlobal_setEmaddrs.Count() ; n++)
{
ema = _hzGlobal_setEmaddrs.GetObj(n) ;
addr = ema._int_addr() ;
if (!addr)
{ nFail++ ; continue ; }
// pCtrl = (_ema_space*) g_ssrInet.Xlate(addr) ;
pCtrl = _emaXlate(addr) ;
// pSlot = (_ssrFLE*) pCtrl ;
if (!pCtrl->m_copy || pCtrl->m_copy == 0xff||!pCtrl->m_lhs||!pCtrl->m_rhs)
nFail++ ;
else
{
if (bVerbose)
pLog->Out("%u:%u: copy %u -> %s\n", (addr&0xffff0000)>>16,addr&0xffff,pCtrl->m_copy,pCtrl->m_data);
nPass++ ;
}
}
pLog->Log("Total email population %u. No OK %u Failed %u\n", _hzGlobal_setEmaddrs.Count(), nPass, nFail) ;
return E_OK ;
}