<table><tr><td style="">sitter created this revision.<br />sitter added reviewers: ngraham, meven.<br />Herald added projects: Dolphin, Frameworks.<br />Herald added subscribers: kfm-devel, kde-frameworks-devel.<br />sitter requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D28513">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>previously we simply used the ip address. this is fairly awkward though.<br />
instead try to deduce a resolvable host name from the pretty name.</p>
<p>at discovery time we simply assume prettyName.local is the hostname.</p>
<p>at listDir time we then attempt to resolve the name and if that fails<br />
strip the .local to get the presumed LLMNR/netbios name. this means<br />
the (first) listDir may be slower while we try to find a working hostname<br />
but discovery is still as fast as possible.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>wsdd on linux server resolves as expected, wsd on win10 also resolves as expected</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R320 KIO Extras</div></div></div><br /><div><strong>BRANCH</strong><div><div>smb-lazy-resolve</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D28513">https://phabricator.kde.org/D28513</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>smb/kio_smb_browse.cpp<br />
smb/wsdiscoverer.cpp</div></div></div><br /><div><strong>To: </strong>sitter, ngraham, meven<br /><strong>Cc: </strong>kde-frameworks-devel, kfm-devel, nikolaik, pberestov, iasensio, fprice, LeGast00n, cblack, fbampaloukas, alexde, GB_2, Codezela, feverfew, meven, michaelh, spoorun, navarromorales, firef, ngraham, andrebarros, bruns, emmanuelp, mikesomov<br /></div>