Many thanks!
On 2月11日, 下午5时17分, Kostya Vasilyev kmans...@gmail.com wrote:
Sounds right. That C function, getaddrinfo, is IPv6 aware. If the kernel was
compiled without v6 support, it returns an error code, which is then turned
into an exception by the Java networking library.
--
Kostya
Thank you very much,
The Browser utilizes a class called InetAddress to deal with Internet
address. The InetAddress class further calls getaddrinfo, which is a
native method to resolve the URLs. This native method is implemented
in C and will throw an exception when it is resolving a IPv6 URL
I have read the link and understand that migration to IPv6 when the
application is implemented in pure JAVA is easy. But (i don't know
why) the Browser did not utilize pure JAVA code to deal with the IPv6
connection...
When we build the OS, we can specify the kernel config file to build
against.
Yes, i have read the page and understand that migration to IPv6 when
the application is developed in pure JAVA is easy. But i don't know
why the Browser uses getaddrinfo(), which is a C function, to deal
with IPv6 connection.
When we build the OS, we can specify the kernel config file to build
Sounds right. That C function, getaddrinfo, is IPv6 aware. If the kernel was
compiled without v6 support, it returns an error code, which is then turned
into an exception by the Java networking library.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
12.02.2011 1:03 пользователь 捷超 王
Yes, i have read the page and understand that migration to IPv6 when
the application is developed in pure JAVA is easy. But i don't know
why the Browser uses getaddrinfo(), which is a C function, to deal
with IPv6 connection.
When we build the OS, we can specify the kernel config file to build
You didn't say you were interested in native code.
The kernel is built a certain way, and it doesn't need to reference
build config files - the code to support IPv6 is either there or not.
The C functions for socket stuff call into the kernel. Some of those
give a C application the ability
The Browser utilizes an JAVA class named InetAddress and this class
further calls the getaddrinfo native method to resolve the URLs.
I am still not sure what reads the changed kernel config file and
contributes to the changed behavior of the Browser.apk. Is build/core/
main.mk?
On Feb 7, 1:48 am,
According to the link I posted before:
http://download.oracle.com/javase/1.5.0/docs/guide/net/ipv6_guide/index.html
getaddrinfo() is IPv6-aware, but of course depends on kernel support
being there.
So go head and read that page, I think it goes a long way towards
answering your question.
OK. Thank you.
But i would like to know, what problems are appropriate to post here?
On Feb 7, 12:04 am, Kostya Vasilyev kmans...@gmail.com wrote:
Perhaps the browser always recognizes IPv6 addresses, and tries to use
them?
If IPv6 is disabled in the kernel, trying to use a v6 socket should
From the group's description on Google Groups:
http://groups.google.com/group/android-developers
Discuss developing Android applications using the Android SDK. Get
help with troubleshooting apps, advice on implementation, and
strategies for improving your app's speed and user experience.
11 matches
Mail list logo