Re: listen on specified ipaddress

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 UTC