lib/oxidized/input/tftp.rb
def connect(node)
      @node = node

      @node.model.cfg['tftp'].each { |cb| instance_exec(&cb) }
      @log = File.open(Oxidized::Config::Log + "/#{@node.ip}-tftp", 'w') if Oxidized.config.input.debug?
      @tftp = Net::TFTP.new @node.ip
    end
def connect(node)
      @node = node

      @node.model.cfg['tftp'].each { |cb| instance_exec(&cb) }
      @log = File.open(Oxidized::Config::Log + "/#{@node.ip}-tftp", 'w') if Oxidized.config.input.debug?
      @tftp = Net::TFTP.new @node.ip
    end
def connect ( node ) @node = node @node . model . cfg [ 'tftp' ] . each { | cb | instance_exec ( cb ) } @log = File . open ( Oxidized :: Config :: Log + "/#{@node.ip}-tftp" , 'w' ) if Oxidized . config . input . debug? @tftp = Net :: TFTP . new @node . ip end
TFTP utilizes UDP, there is not a connection. We simply specify an IP and send/receive data.
TFTP utilizes UDP there is not a connection . We simply specify an IP and send / receive data .