Lines Matching refs:port
69 public ServerSocket createServerSocket(int port, int backlog,
71 return new ServerSocket(port, backlog, bindAddress);
74 public Socket createSocket(InetAddress address, int port)
76 return new Socket(address, port);
83 public DatagramSocket createDatagramSocket(int port, InetAddress laddr)
88 MulticastSocket ds = new MulticastSocket( port );
94 } else return new DatagramSocket(port, laddr);
98 public SSLServerSocket createSSLServerSocket(int port, int backlog,
101 port, backlog, bindAddress);
105 public SSLSocket createSSLSocket(InetAddress address, int port)
107 return (SSLSocket) sslSocketFactory.createSocket(address, port);
111 public SSLSocket createSSLSocket(InetAddress address, int port,
113 return (SSLSocket) sslSocketFactory.createSocket(address, port,
117 public Socket createSocket(InetAddress address, int port,
120 return new Socket(address, port, myAddress, 0);
122 return new Socket(address, port);
127 * address:port.
130 * @param port the port that we'd like to connect to
133 * @param myPort the port that we are supposed to bind on or 0 for a random
137 * address:port.
141 public Socket createSocket(InetAddress address, int port,
146 return new Socket(address, port, myAddress, myPort);
147 else if (port != 0)
149 //myAddress is null (i.e. any) but we have a port number
151 sock.bind(new InetSocketAddress(port));
152 sock.connect(new InetSocketAddress(address, port));
156 return new Socket(address, port);