Class: Racoon::APNS::FeedbackConnection

Inherits:
Connection
  • Object
show all
Defined in:
lib/racoon/apns/feedback_connection.rb

Instance Attribute Summary

Attributes inherited from Connection

#host, #password, #pem, #port

Instance Method Summary collapse

Methods inherited from Connection

#connect!, #connected?, #disconnect!, #write

Constructor Details

#initialize(pem, host = 'feedback.push.apple.com', port = 2196, pass = nil) ⇒ FeedbackConnection

Returns a new instance of FeedbackConnection.



9
10
11
# File 'lib/racoon/apns/feedback_connection.rb', line 9

def initialize(pem, host = 'feedback.push.apple.com', port = 2196, pass = nil)
  @pem, @host, @port, @pass = pem, host, port, pass
end

Instance Method Details

#readObject



13
14
15
16
17
18
19
# File 'lib/racoon/apns/feedback_connection.rb', line 13

def read
  records ||= []
  while record = @ssl.read(38)
    records << parse_tuple(record)
  end
  records
end