Changeset 734

Show
Ignore:
Timestamp:
07/01/08 07:25:48 (5 months ago)
Author:
raggi
Message:

Moved to using autoload for protocols, and added note about name convention

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/raggi/lib/eventmachine.rb

    r726 r734  
    16021602        # In this module, we define standard protocol implementations. 
    16031603        # They get included from separate source files. 
     1604         
     1605        # TODO / XXX: We're munging the LOAD_PATH! 
     1606        # A good citizen would use eventmachine/protocols/tcptest. 
     1607        # TODO : various autotools are completely useless with the lack of naming 
     1608        # convention, we need to correct that! 
     1609        autoload :TcpConnectTester, 'protocols/tcptest' 
     1610        autoload :HttpClient, 'protocols/httpclient' 
     1611        autoload :LineAndTextProtocol, 'protocols/line_and_text' 
     1612        autoload :HeaderAndContentProtocol, 'protocols/header_and_content' 
     1613        autoload :LineText2, 'protocols/linetext2' 
     1614        autoload :HttpClient2, 'protocols/httpcli2' 
     1615        autoload :Stomp, 'protocols/stomp' 
     1616        autoload :SmtpClient, 'protocols/smtpclient' 
     1617        autoload :SmtpServer, 'protocols/smtpserver' 
     1618        autoload :SASLauth, 'protocols/saslauth' 
    16041619end 
    16051620 
    16061621end # module EventMachine 
    1607  
    1608  
    16091622 
    16101623# Save everyone some typing. 
     
    16121625EM::P = EventMachine::Protocols 
    16131626 
    1614  
    1615 # At the bottom of this module, we load up protocol handlers that depend on some 
    1616 # of the classes defined here. Eventually we should refactor this out so it's 
    1617 # laid out in a more logical way. 
    1618 # 
    1619  
    1620 require 'protocols/tcptest' 
    1621 require 'protocols/httpclient' 
    1622 require 'protocols/line_and_text' 
    1623 require 'protocols/header_and_content' 
    1624 require 'protocols/linetext2' 
    1625 require 'protocols/httpcli2' 
    1626 require 'protocols/stomp' 
    1627 require 'protocols/smtpclient' 
    1628 require 'protocols/smtpserver' 
    1629 require 'protocols/saslauth' 
    1630  
    16311627require 'em/processes' 
    1632  
    1633