Exemplo n.º 1
0
 bool verifyDaliFileServer(IpAddress &ip)
 {
     CIpItem *item=find(ip);
     if (!item) {
         item = new CIpItem;
         item->ip.ipset(ip);
         item->ok = testDaliServixPresent(ip);
         add(*item);
     }
     return item->ok;
 }
Exemplo n.º 2
0
bool CDfuPlusHelper::checkLocalDaFileSvr(const char *eps,SocketEndpoint &epout)
{
    if (!eps||!*eps)
        epout.setLocalHost(DAFILESRV_PORT);
    else {
        epout.set(eps,DAFILESRV_PORT);
        if (!epout.isLocal())
            return false;
    }
    progress("Checking for local Dali File Server\n");
    if (!testDaliServixPresent(epout)) // only lookup local
        runLocalDaFileSvr(epout,false,0);
    return true;
}