Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319332

Summary: Support agents using hostnames in IPeer.ATTR_IP_HOST
Product: [Tools] CDT Reporter: John Cortell <john.cortell>
Component: cdt-debug-edcAssignee: Ken Ryall <ken.ryall>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: normal    
Priority: P3 CC: ed.swartz
Version: 7.0Flags: ed.swartz: review+
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Solution john.cortell: iplog-

Description John Cortell CLA 2010-07-08 19:29:03 EDT
The Freescale TCF agents uses the local hostname instead of a numeric IP address when advertising its peers via discovery. I asked Eugene about this. He says that's fine, but receiving agents are not required to handle a hostname.

It would be a relatively low runtime cost enhancement to EDC's TCFServiceManager. I've attached my proposed solution. Will commit unless if there are no objections
Comment 1 John Cortell CLA 2010-07-08 19:29:41 EDT
Created attachment 173829 [details]
Solution
Comment 2 John Cortell CLA 2010-07-08 19:31:30 EDT
[Correction] Will commit if there are no objections
Comment 3 John Cortell CLA 2010-07-27 14:14:37 EDT
Committed to HEAD
Comment 4 John Cortell CLA 2010-07-27 14:14:53 EDT
Ed, please review.
Comment 5 CDT Genie CLA 2010-07-27 14:23:02 EDT
*** cdt cvs genie on behalf of jcortell ***
Bug 319332: Support agents using hostnames in IPeer.ATTR_IP_HOST

[*] TCFServiceManager.java 1.26 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc/src/org/eclipse/cdt/debug/edc/internal/TCFServiceManager.java?root=Tools_Project&r1=1.25&r2=1.26
Comment 6 Ed Swartz CLA 2010-08-09 11:01:51 EDT
Looks good to me.