Lines Matching defs:Socket

49  * @see     java.net.Socket#setSocketImplFactory(java.net.SocketImplFactory)
55 class Socket implements java.io.Closeable {
68 * The implementation of this Socket.
84 public Socket() {
97 * <UL> <LI><code>Socket s = new Socket(Proxy.NO_PROXY);</code> will create
99 * <LI><code>Socket s = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("socks.mydom.com", 1080)));</code>
116 public Socket(Proxy proxy) {
126 checkAddress (epoint.getAddress(), "Socket");
152 * Creates an unconnected Socket with a user-specified
156 * the subclass wishes to use on the Socket.
162 protected Socket(SocketImpl impl) throws SocketException {
200 * @see java.net.Socket#setSocketImplFactory(java.net.SocketImplFactory)
205 public Socket(String host, int port)
235 * @see java.net.Socket#setSocketImplFactory(java.net.SocketImplFactory)
240 public Socket(InetAddress address, int port) throws IOException {
247 * the specified remote port. The Socket will also bind() to the local
278 public Socket(String host, int port, InetAddress localAddr,
287 * the specified remote port. The Socket will also bind() to the local
317 public Socket(InetAddress address, int port, InetAddress localAddr,
357 * @see java.net.Socket#setSocketImplFactory(java.net.SocketImplFactory)
364 public Socket(String host, int port, boolean stream) throws IOException {
400 * @see java.net.Socket#setSocketImplFactory(java.net.SocketImplFactory)
407 public Socket(InetAddress host, int port, boolean stream) throws IOException {
412 private Socket(SocketAddress address, SocketAddress localAddr,
556 throw new SocketException("Socket is closed");
612 throw new SocketException("Socket is closed");
872 throw new SocketException("Socket is closed");
874 throw new SocketException("Socket is not connected");
876 throw new SocketException("Socket input is shutdown");
877 final Socket s = this;
912 throw new SocketException("Socket is closed");
914 throw new SocketException("Socket is not connected");
916 throw new SocketException("Socket output is shutdown");
917 final Socket s = this;
947 throw new SocketException("Socket is closed");
962 throw new SocketException("Socket is closed");
982 throw new SocketException("Socket is closed");
1009 throw new SocketException("Socket is closed");
1060 throw new SocketException("Socket is closed");
1075 throw new SocketException("Socket is closed");
1082 * a read() call on the InputStream associated with this Socket
1085 * Socket is still valid. The option <B>must</B> be enabled
1097 throw new SocketException("Socket is closed");
1115 throw new SocketException("Socket is closed");
1127 * <tt>Socket</tt>. The SO_SNDBUF option is used by the platform's
1153 throw new SocketException("Socket is closed");
1158 * Get value of the SO_SNDBUF option for this <tt>Socket</tt>,
1160 * for output on this <tt>Socket</tt>.
1161 * @return the value of the SO_SNDBUF option for this <tt>Socket</tt>.
1171 throw new SocketException("Socket is closed");
1182 * <tt>Socket</tt>. The SO_RCVBUF option is used by the platform's
1225 throw new SocketException("Socket is closed");
1230 * Gets the value of the SO_RCVBUF option for this <tt>Socket</tt>,
1232 * input on this <tt>Socket</tt>.
1234 * @return the value of the SO_RCVBUF option for this <tt>Socket</tt>.
1243 throw new SocketException("Socket is closed");
1263 throw new SocketException("Socket is closed");
1278 throw new SocketException("Socket is closed");
1284 * header for packets sent from this Socket.
1332 throw new SocketException("Socket is closed");
1338 * for packets sent from this Socket
1343 * set using the {@link #setTrafficClass(int)} method on this Socket.
1372 * When a <tt>Socket</tt> is created the initial setting
1391 throw new SocketException("Socket is closed");
1406 throw new SocketException("Socket is closed");
1454 * @see java.net.Socket#shutdownOutput()
1455 * @see java.net.Socket#close()
1456 * @see java.net.Socket#setSoLinger(boolean, int)
1462 throw new SocketException("Socket is closed");
1464 throw new SocketException("Socket is not connected");
1466 throw new SocketException("Socket input is already shutdown");
1484 * @see java.net.Socket#shutdownInput()
1485 * @see java.net.Socket#close()
1486 * @see java.net.Socket#setSoLinger(boolean, int)
1492 throw new SocketException("Socket is closed");
1494 throw new SocketException("Socket is not connected");
1496 throw new SocketException("Socket output is already shutdown");
1509 return "Socket[addr=" + getImpl().getInetAddress() +
1514 return "Socket[unconnected]";