Lines Matching refs:Socket
22 import java.net.Socket;
34 public Socket createSocket() throws IOException {
35 return new Socket();
39 public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
40 return new Socket(host, port);
44 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
46 return new Socket(host, port, localHost, localPort);
50 public Socket createSocket(InetAddress host, int port) throws IOException {
51 return new Socket(host, port);
55 public Socket createSocket(InetAddress address, int port, InetAddress localAddress,
57 return new Socket(address, port, localAddress, localPort);