module TFTP
Constants
- Error
Public Class Methods
ListeningConnection(listener_klass)
click to toggle source
# File lib/em-tftp.rb, line 285 def self.ListeningConnection(listener_klass) # create a subclass of ListeningConnection which uses a specific type of listener # this is necessary because when opening a socket, EM does not take a connection OBJECT argument, but a connection CLASS Class.new(TFTP::ListeningConnection).tap { |c| c.instance_variable_set(:@listener_klass, listener_klass) } end
ReadOnlyFileServer(base_dir)
click to toggle source
# File lib/em-tftp.rb, line 395 def self.ReadOnlyFileServer(base_dir) Class.new(ReadOnlyFileServer).tap { |c| c.instance_variable_set(:@base_dir, base_dir) } end