Lines Matching refs:Socket
22 import java.net.Socket;
28 * to create specific socket types with additional socket-level functionality.
35 * Gets the default socket factory of the system which can be used to create
38 * @return the system default socket factory.
54 * Creates a new socket which is not connected to any remote host. This
58 * @return the created unconnected socket.
60 * if an error occurs while creating a new socket.
62 public Socket createSocket() throws IOException {
68 * Creates a new socket which is connected to the remote host specified by
69 * the parameters {@code host} and {@code port}. The socket is bound to any
73 * the remote host address the socket has to be connected to.
75 * the port number of the remote host at which the socket is
77 * @return the created connected socket.
79 * if an error occurs while creating a new socket.
84 public abstract Socket createSocket(String host, int port) throws IOException,
88 * Creates a new socket which is connected to the remote host specified by
89 * the parameters {@code host} and {@code port}. The socket is bound to the
94 * the remote host address the socket has to be connected to.
96 * the port number of the remote host at which the socket is
99 * the local host address the socket is bound to.
101 * the port number of the local host at which the socket is
103 * @return the created connected socket.
105 * if an error occurs while creating a new socket.
110 public abstract Socket createSocket(String host, int port, InetAddress localHost, int localPort)
114 * Creates a new socket which is connected to the remote host specified by
115 * the InetAddress {@code host}. The socket is bound to any available local
119 * the host address the socket has to be connected to.
121 * the port number of the remote host at which the socket is
123 * @return the created connected socket.
125 * if an error occurs while creating a new socket.
127 public abstract Socket createSocket(InetAddress host, int port) throws IOException;
131 * Creates a new socket which is connected to the remote host specified by
132 * the InetAddress {@code address}. The socket is bound to the local network
137 * the remote host address the socket has to be connected to.
139 * the port number of the remote host at which the socket is
142 * the local host address the socket is bound to.
144 * the port number of the local host at which the socket is
146 * @return the created connected socket.
148 * if an error occurs while creating a new socket.
150 public abstract Socket createSocket(InetAddress address, int port, InetAddress localAddress,