1 8 package org.codehaus.spice.netserve.sockets.impl; 9 10 import java.io.IOException ; 11 import java.net.InetAddress ; 12 import java.net.ServerSocket ; 13 import org.codehaus.spice.netserve.sockets.ServerSocketFactory; 14 15 23 public class DefaultServerSocketFactory 24 implements ServerSocketFactory 25 { 26 33 public ServerSocket createServerSocket( final int port ) 34 throws IOException 35 { 36 return new ServerSocket ( port ); 37 } 38 39 47 public ServerSocket createServerSocket( int port, int backlog ) 48 throws IOException 49 { 50 return new ServerSocket ( port, backlog ); 51 } 52 53 63 public ServerSocket createServerSocket( int port, int backlog, InetAddress address ) 64 throws IOException 65 { 66 return new ServerSocket ( port, backlog, address ); 67 } 68 } 69 70 | Popular Tags |