1 7 8 15 16 package javax.net; 17 18 import java.io.IOException; 19 import java.net.InetAddress; 20 import java.net.ServerSocket; 21 import java.net.SocketException; 22 23 42 public abstract class ServerSocketFactory 43 { 44 45 48 protected ServerSocketFactory() { } 49 50 55 public static ServerSocketFactory getDefault() { 56 return null; 57 } 58 59 69 public ServerSocket createServerSocket() throws IOException { 70 return null; 71 } 72 73 83 public abstract ServerSocket createServerSocket(int port) 84 throws IOException; 85 86 97 public abstract ServerSocket createServerSocket(int port, int backlog) 98 throws IOException; 99 100 116 public abstract ServerSocket createServerSocket(int port, int backlog, 117 InetAddress ifAddress) throws IOException; 118 } 119 | Popular Tags |