lib/zold/remotes.rb
# The default TCP port all nodes are supposed to use.
The default TCP port all nodes are supposed to use.
The default TCP port all nodes are supposed to use .
def assert_host_info(host, port)
      raise 'Host can\'t be nil' if host.nil?
      raise 'Host can\'t be empty' if host.empty?
      raise 'Host IP is wrong, can\'t be all zeros' if host == '0.0.0.0'
      raise 'Port can\'t be nil' if port.nil?
      raise 'Port has to be of type Integer' unless port.is_a?(Integer)
      raise 'Port can\'t be zero' if port.zero?
      raise 'Port can\'t be negative' if port.negative?
      raise 'Port can\'t be over 65536' if port > 0xffff
    end
def assert_host_info ( host , port ) raise 'Host can\'t be nil' if host . nil? raise 'Host can\'t be empty' if host . empty? raise 'Host IP is wrong, can\'t be all zeros' if host == '0.0.0.0' raise 'Port can\'t be nil' if port . nil? raise 'Port has to be of type Integer' unless port . is_a? ( Integer ) raise 'Port can\'t be zero' if port . zero? raise 'Port can\'t be negative' if port . negative? raise 'Port can\'t be over 65536' if port > 0xffff end
The default TCP port all nodes are supposed to use.
The default TCP port all nodes are supposed to use .
host
<not_specific>
port
<not_specific>