lib/em_spamc/connection.rb
def post_init
    if (error?)
      @fiber.resume
    else
      send_data("#{@command} #{PROTO_VERSION}\r\n")

      if (@message)
        send_data("Content-length: #{@message.bytesize}\r\n")
        send_data("\r\n")
        send_data(@message)
      else
        send_data("\r\n")
      end
    end
  end
# EventMachine hook that's engaged after the client is initialized.
EventMachine hook that's engaged after the client is initialized.
EventMachine hook that ' s engaged after the client is initialized .
def post_init
    if (error?)
      @fiber.resume
    else
      send_data("#{@command} #{PROTO_VERSION}\r\n")
      if (@message)
        send_data("Content-length: #{@message.bytesize}\r\n")
        send_data("\r\n")
        send_data(@message)
      else
        send_data("\r\n")
      end
    end
  end
def post_init if ( error? ) @fiber . resume else send_data ( "#{@command} #{PROTO_VERSION}\r\n" ) if ( @message ) send_data ( "Content-length: #{@message.bytesize}\r\n" ) send_data ( "\r\n" ) send_data ( @message ) else send_data ( "\r\n" ) end end end
EventMachine hook that's engaged after the client is initialized.
EventMachine hook that ' s engaged after the client is initialized .