method

sendport

v1_8_7_330 - Show latest stable - Class: Net::FTP
sendport(host, port)
private

No documentation available.

# File lib/net/ftp.rb, line 278
    def sendport(host, port)
      af = (@sock.peeraddr)[0]
      if af == "AF_INET"
        cmd = "PORT " + (host.split(".") + port.divmod(256)).join(",")
      elsif af == "AF_INET6"
        cmd = sprintf("EPRT |2|%s|%d|", host, port)
      else
        raise FTPProtoError, host
      end
      voidcmd(cmd)
    end