Class: Celluloid::SMTP::Server::Handler
- Inherits:
-
Object
- Object
- Celluloid::SMTP::Server::Handler
- Includes:
- Celluloid
- Defined in:
- lib/celluloid/smtp/server/handler.rb
Instance Method Summary collapse
Instance Method Details
#serve(socket, options) ⇒ Object
6 7 8 9 10 |
# File 'lib/celluloid/smtp/server/handler.rb', line 6 def serve(socket, ) SMTP::Server.protector(socket) { |io| SMTP::Connection.new(io,) } end |
#socket(socket, options) ⇒ Object
3 4 5 |
# File 'lib/celluloid/smtp/server/handler.rb', line 3 def socket(socket, ) async.serve(socket,) end |