On 11/11/2012 07:03 PM, Dmitry Samersoff wrote:
Frank,
Changes look good for me.
I admit that I am not an expert in this area, but given the information
you provided, and I guess you verified this in your environment, the
conversion would appear reasonable.
But it might be better to fall
Changeset: 2901c7b5339e
Author:jjg
Date: 2012-11-13 15:09 -0800
URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/2901c7b5339e
8003299: Cleanup javac Log support for deferred diagnostics
Reviewed-by: mcimadamore, jfranck
! src/share/classes/com/sun/tools/javac/comp/Attr.java
!
Is there a Java API I can translate "http" to 80?
Thanks
Max
I don't think so...
Thanks,
- Kurchi
On 13.11.2012 16:40, Weijun Wang wrote:
Is there a Java API I can translate "http" to 80?
Thanks
Max
--
-Kurchi
Max:
I've never seen a procedure that binds a protocol to a port number. (The http
protocol you mention usually uses TCP port number 80, but the port choice for
this protocol is up to the discretion of the programmer. The file /etc/services
binds names to numbers so that tools like tcpdump and n
Changeset: be1fb42ef696
Author:mduigou
Date: 2012-11-13 20:02 -0800
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/be1fb42ef696
7088913: Add compatible static hashCode(primitive) to primitive wrapper classes
Summary: Adds static utility methods to each primitive wrapper class to al
Changeset: 83765e82cacb
Author:zhouyx
Date: 2012-11-14 13:26 +0800
URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/83765e82cacb
7201156: jar tool fails to convert file separation characters for list and
extract
Reviewed-by: alanb, chegar, sherman
! src/share/classes/sun/tools/jar/
I was told that a DNS SRV record might contain a service name as the
port value. Though I haven't seen that, but if it's true, I'll need a
way to translate it to a real port number.
I don't want to store a map inside my code, nor do I intend to read
/etc/services directly, that's why I asked f
John,
The goal of getportbyname() is transfer responsibility of finding right
ports for running service from software developer to system
administrator, and especially useful if we have one /etc/services for
whole network (e.g. distributed by NIS)
e.g instead of constantly fixing port numbers in