You Are Here:

Community: Developer Discussion Boards

#1 Old RhostResolver problem? - 2004-02-08, 21:30

Join Date: Jun 2003
Posts: 69
ayulo
Offline
Regular Contributor
I used this code for device discovery...


User::LeaveIfError(socketServ.FindProtocol(protocol,pInfo));

RHostResolver hr;
User::LeaveIfError(hr.Open(socketServ,pInfo.iAddrFamily,pInfo.iProtocol));

TInquirySockAddr addr;
TNameEntry entry
addr.SetIAC(KGIAC);
addr.SetAction(KHostResInquiry | KHostResName |KHostResIgnoreCache);
TRequestStatus status;
hr.GetByAddress(addr, entry, status);
User::WaitForRequest(status);


... now when i tried to get the the name by:


TBuf<50> thename;
thename = entry().iName ;


thename keeps on getting garbage values? why? something wrong with the code?
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia