1 17 18 package org.apache.avalon.cornerstone.services.sockets; 19 20 import java.io.IOException ; 21 import java.net.InetAddress ; 22 import java.net.Socket ; 23 24 29 public interface SocketFactory 30 { 31 39 Socket createSocket( InetAddress address, int port ) 40 throws IOException ; 41 42 53 Socket createSocket( InetAddress address, int port, 54 InetAddress localAddress, int localPort ) 55 throws IOException ; 56 } 57 | Popular Tags |