classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] ServerSocket.bind


From: Guilhem Lavaux
Subject: Re: [PATCH] ServerSocket.bind
Date: Fri, 26 Dec 2003 15:22:37 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007

Mark Wielaard wrote:

Hi Michael,

On Thu, 2003-12-25 at 18:34, Michael Koch wrote:
After talking with guilhem on irc I got the problem and wrote the
attached patch. I commited it to trunk already.

Mark: Can you please commit this to classpath ?

Now that you have commit access to classpath back yourself could you do
that? And could you take a look at the following small diff against the
kaffe implementation.

--- java/net/ServerSocket.java  2003-12-25 17:49:41.000000000 +0100
+++ /home/mark/src/kaffe/libraries/javalib/java/net/ServerSocket.java 2003-12-25 16:31:22.000000000 +0100
@@ -228,7 +228,10 @@
try
      {
-       impl.bind (tmp.getAddress (), tmp.getPort ());
+       if (tmp.getAddress () != null)
+         impl.bind (tmp.getAddress (), tmp.getPort ());
+       else
+         impl.bind (InetAddress.ANY_IF, tmp.getPort ());
       impl.listen(backlog);
       bound = true;
      }
It is already in Michael's patch. I'll merge the new code by Michael from classpath.

Cheers,
Guilhem.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]