lib/awestruct/cli/server.rb
# Private. Checks to see if the port is open.
Private. Checks to see if the port is open.
Private . Checks to see if the port is open .
def port_open?(addr, port)
        begin
          s = TCPServer.new(addr, port)
          s.close
          true
        rescue  
          false
        end
      end
def port_open? ( addr , port ) begin s = TCPServer . new ( addr , port ) s . close true rescue false end end
Private.
Private .
addr
port