W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1999

Re: listen on specified ipaddress

From: Yves Lafon <ylafon@w3.org>
Date: Sat, 5 Jun 1999 15:24:09 +0200 (MET DST)
To: Christopher William Turner <cwturner@cycom.co.uk>
cc: www-jigsaw@w3.org
Message-ID: <Pine.GSO.4.10.9906051520420.27182-100000@tarantula.inria.fr>
On Sun, 3 Jan 1999, Christopher William Turner wrote:

> I changed the implementation of this method in
> org.w3c.jigsaw.http.socket.SocketClientFactory
> so as to allow jigsaw to only listen on a specified ipadress.
> This is required by some ISPs.
> It can then be activated
> by  a java commandline option, e.g.:-
> "-Dipaddress=168.192.204.1"
> 
>     public ServerSocket createServerSocket()
>  throws IOException
>     {
>  String ipaddress = System.getProperty("ipaddress");
>  if(ipaddress==null || ipaddress.length()<1){
>          System.err.println("listening on default ipaddress");
>   return new ServerSocket (server.getPort(), 128) ;
>  } else {
>      System.err.println("listening on "+ipaddress);
>     InetAddress ina = InetAddress.getByName(ipaddress);     return new
> ServerSocket(server.getPort(), 128, ina);
>  }

It is now a property in SocketClientProperty, you can check both files
from the cvs repository [1] for the new version. Also the backlog has been
changed in the server socket.
(The devel zips will be there on monday)

[1] http://dev.w3.org/cgi-bin/cvsweb/
    http://dev.w3.org/cgi-bin/cvsweb/java/

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Saturday, 5 June 1999 09:24:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:29 GMT