equal
deleted
inserted
replaced
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 |