Class: EM::FTPD::ActiveSocket

Inherits:
EventMachine::Connection
  • Object
show all
Includes:
BaseSocket, Deferrable
Defined in:
lib/em-ftpd/active_socket.rb

Overview

An eventmachine module for connecting to a remote port and downloading a file

Instance Attribute Summary

Attributes included from BaseSocket

#aborted

Class Method Summary collapse

Methods included from BaseSocket

#abort, #data, #initialize, #on_stream, #receive_data, #unbind

Class Method Details

.open(host, port) ⇒ Object



9
10
11
# File 'lib/em-ftpd/active_socket.rb', line 9

def self.open(host, port)
  EventMachine.connect(host, port, self)
end