src/net.cpp
// used when scores of local addresses may have changed
// pushes better local address to peers
used when scores of local addresses may have changed
pushes better local address to peers
used when scores of local addresses may have changed pushes better local address to peers
void static AdvertizeLocal()
{
    LOCK(cs_vNodes);
    BOOST_FOREACH(CNode* pnode, vNodes)
    {
        if (pnode->fSuccessfullyConnected)
        {
            CAddress addrLocal = GetLocalAddress(&pnode->addr);
            if (addrLocal.IsRoutable() && (CService)addrLocal != pnode->addrLocal)
            {
                pnode->PushAddress(addrLocal);
                pnode->addrLocal = addrLocal;
            }
        }
    }
}
void static AdvertizeLocal ( ) { LOCK ( cs_vNodes ) ; BOOST_FOREACH ( CNode * pnode , vNodes ) { if ( pnode -> fSuccessfullyConnected ) { CAddress addrLocal = GetLocalAddress ( & pnode -> addr ) ; if ( addrLocal . IsRoutable ( ) && ( CService ) addrLocal != pnode -> addrLocal ) { pnode -> PushAddress ( addrLocal ) ; pnode -> addrLocal = addrLocal ; } } } }
used when scores of local addresses may have changed
pushes better local address to peers
used when scores of local addresses may have changed pushes better local address to peers