jdk/src/share/classes/java/net/SocksSocketImpl.java
changeset 14014 da3648e13e67
parent 7982 65f5328a67a2
child 14342 8435a30053c1
equal deleted inserted replaced
14013:10f55dd791e1 14014:da3648e13e67
   642     /**
   642     /**
   643      * Sends the Bind request to the SOCKS proxy. In the SOCKS protocol, bind
   643      * Sends the Bind request to the SOCKS proxy. In the SOCKS protocol, bind
   644      * means "accept incoming connection from", so the SocketAddress is the
   644      * means "accept incoming connection from", so the SocketAddress is the
   645      * the one of the host we do accept connection from.
   645      * the one of the host we do accept connection from.
   646      *
   646      *
   647      * @param      addr   the Socket address of the remote host.
   647      * @param      saddr   the Socket address of the remote host.
   648      * @exception  IOException  if an I/O error occurs when binding this socket.
   648      * @exception  IOException  if an I/O error occurs when binding this socket.
   649      */
   649      */
   650     protected synchronized void socksBind(InetSocketAddress saddr) throws IOException {
   650     protected synchronized void socksBind(InetSocketAddress saddr) throws IOException {
   651         if (socket != null) {
   651         if (socket != null) {
   652             // this is a client socket, not a server socket, don't
   652             // this is a client socket, not a server socket, don't