1 8 package org.codehaus.spice.netserve.sockets.impl; 9 10 import java.io.IOException ; 11 import java.net.InetAddress ; 12 import java.net.Socket ; 13 import org.codehaus.spice.netserve.sockets.SocketFactory; 14 15 23 public class DefaultSocketFactory 24 implements SocketFactory 25 { 26 34 public Socket createSocket( final InetAddress address, final int port ) 35 throws IOException 36 { 37 return new Socket ( address, port ); 38 } 39 40 51 public Socket createSocket( final InetAddress address, 52 final int port, 53 final InetAddress localAddress, 54 final int localPort ) 55 throws IOException 56 { 57 return new Socket ( address, port, localAddress, localPort ); 58 } 59 } 60 | Popular Tags |