Class: Evma::TcpSocket
- Inherits:
-
Object
- Object
- Evma::TcpSocket
- Defined in:
- lib/evma/factory.rb
Class Method Summary collapse
Class Method Details
.connect(server, port, protocol_handler = Evma::Protocol) ⇒ Object
48 49 50 51 52 |
# File 'lib/evma/factory.rb', line 48 def self.connect server, port, protocol_handler = Evma::Protocol Evma::Reactor.instance # ensure initialization sig = EventMachine.connect_server server, port Evma::Container.store protocol_handler.new( sig ) end |