1 17 18 package org.apache.tomcat.util.net; 19 20 import java.io.*; 21 import java.net.*; 22 23 30 31 33 class DefaultServerSocketFactory extends ServerSocketFactory { 38 39 DefaultServerSocketFactory () { 40 41 } 42 43 public ServerSocket createSocket (int port) 44 throws IOException { 45 return new ServerSocket (port); 46 } 47 48 public ServerSocket createSocket (int port, int backlog) 49 throws IOException { 50 return new ServerSocket (port, backlog); 51 } 52 53 public ServerSocket createSocket (int port, int backlog, 54 InetAddress ifAddress) 55 throws IOException { 56 return new ServerSocket (port, backlog, ifAddress); 57 } 58 59 public Socket acceptSocket(ServerSocket socket) 60 throws IOException { 61 return socket.accept(); 62 } 63 64 public void handshake(Socket sock) 65 throws IOException { 66 ; } 68 69 70 } 71 | Popular Tags |