This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ServerSocket.bind


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 also comes from Guilhem for freenet he claims. But maybe you already
discussed this.

Cheers,

Mark

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]