Class: Celluloid::SMTP::Server::Handler

Inherits:
Object
  • Object
show all
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, options)
  SMTP::Server.protector(socket) { |io|
    SMTP::Connection.new(io,options)
  }
end

#socket(socket, options) ⇒ Object



3
4
5
# File 'lib/celluloid/smtp/server/handler.rb', line 3

def socket(socket, options)
  async.serve(socket,options)
end