1 17 18 package org.apache.avalon.cornerstone.blocks.sockets; 19 20 import java.io.IOException ; 21 import java.net.InetAddress ; 22 import java.net.ServerSocket ; 23 import org.apache.avalon.cornerstone.services.sockets.ServerSocketFactory; 24 25 31 public class DefaultServerSocketFactory 32 implements ServerSocketFactory 33 { 34 41 public ServerSocket createServerSocket( final int port ) 42 throws IOException 43 { 44 return new ServerSocket ( port ); 45 } 46 47 55 public ServerSocket createServerSocket( int port, int backLog ) 56 throws IOException 57 { 58 return new ServerSocket ( port, backLog ); 59 } 60 61 71 public ServerSocket createServerSocket( int port, int backLog, InetAddress bindAddress ) 72 throws IOException 73 { 74 return new ServerSocket ( port, backLog, bindAddress ); 75 } 76 } 77 78 | Popular Tags |