[kaffe] some IPv6-related problem?

Ito Kazumitsu kaz@maczuka.gcd.org
Mon Nov 3 08:31:02 2003


>>>>> ":" == Guilhem Lavaux <guilhem@kaffe.org> writes:

:> Then, I don't see why addr should fail except that sizeof(addr) should 
:> be exactly equal to sizeof(struct sockaddr_in). What happens if you put 
:> sizeof(struct sockaddr_in) instead of sizeof(addr) ?

Partially succeded.  At least "server = new ServerSocket(tryport)"
was successful.

bash-2.05b$ java SoTimeout
Success 1.
Failure java.io.IOException: KCONNECT: Invalid argument
java.net.SocketTimeoutException: Accept timed out
   at gnu.java.net.PlainSocketImpl.socketAccept (PlainSocketImpl.java)
   at gnu.java.net.PlainSocketImpl.accept (PlainSocketImpl.java:51)
   at java.net.ServerSocket.implAccept (ServerSocket.java:332)
   at java.net.ServerSocket.accept (ServerSocket.java:307)
   at SoTimeout.main (SoTimeout.java:63)
Failure:   Time out.

The server seems to be using IPv4 address but
"new Socket(InetAddress.getByName(null), port)" may use an IPv6
address?