Home | History | Annotate | Download | only in net

Lines Matching refs:Socket

31 import java.net.Socket;
38 * framework for the addition of public socket-level functionality.
40 * <P> Socket factories are a simple way to capture a variety of policies
50 * in socket construction. So for example, factories could be
55 * of java.net.Socket, so that they can directly expose new APIs
86 * Returns a copy of the environment's default socket factory.
107 // Android-added: Added method for testing default socket factory.
117 * Creates an unconnected socket.
119 * @return the unconnected socket
120 * @throws IOException if the socket cannot be created
121 * @see java.net.Socket#connect(java.net.SocketAddress)
122 * @see java.net.Socket#connect(java.net.SocketAddress, int)
123 * @see java.net.Socket#Socket()
125 public Socket createSocket() throws IOException {
141 * Creates a socket and connects it to the specified remote host
142 * at the specified remote port. This socket is configured using
143 * the socket options established for this factory.
152 * @return the <code>Socket</code>
153 * @throws IOException if an I/O error occurs when creating the socket
161 * @see java.net.Socket#Socket(String, int)
163 public abstract Socket createSocket(String host, int port)
168 * Creates a socket and connects it to the specified remote host
170 * The socket will also be bound to the local address and port supplied.
171 * This socket is configured using
172 * the socket options established for this factory.
181 * @param localHost the local address the socket is bound to
182 * @param localPort the local port the socket is bound to
183 * @return the <code>Socket</code>
184 * @throws IOException if an I/O error occurs when creating the socket
192 * @see java.net.Socket#Socket(String, int, java.net.InetAddress, int)
194 public abstract Socket
200 * Creates a socket and connects it to the specified port number
201 * at the specified address. This socket is configured using
202 * the socket options established for this factory.
210 * @return the <code>Socket</code>
211 * @throws IOException if an I/O error occurs when creating the socket
219 * @see java.net.Socket#Socket(java.net.InetAddress, int)
221 public abstract Socket createSocket(InetAddress host, int port)
226 * Creates a socket and connect it to the specified remote address
227 * on the specified remote port. The socket will also be bound
228 * to the local address and port suplied. The socket is configured using
229 * the socket options established for this factory.
239 * @return the <code>Socket</code>
240 * @throws IOException if an I/O error occurs when creating the socket
248 * @see java.net.Socket#Socket(java.net.InetAddress, int,
251 public abstract Socket
272 public Socket createSocket() {
273 return new Socket();
276 public Socket createSocket(String host, int port)
279 return new Socket(host, port);
282 public Socket createSocket(InetAddress address, int port)
285 return new Socket(address, port);
288 public Socket createSocket(String host, int port,
292 return new Socket(host, port, clientAddress, clientPort);
295 public Socket createSocket(InetAddress address, int port,
299 return new Socket(address, port, clientAddress, clientPort);