1 19 20 package com.maverick.multiplex; 21 22 import java.io.IOException ; 23 import java.net.InetAddress ; 24 import java.net.Socket ; 25 import java.net.UnknownHostException ; 26 27 30 public interface SocketFactory { 31 32 Socket createSocket(String host, int port) throws IOException , UnknownHostException ; 33 34 Socket createSocket(InetAddress host, int port) throws IOException ; 35 36 Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException ; 37 38 Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException ; 39 } | Popular Tags |