Class: Racoon::APNS::FeedbackConnection
- Inherits:
-
Connection
- Object
- Connection
- Racoon::APNS::FeedbackConnection
- Defined in:
- lib/racoon/apns/feedback_connection.rb
Instance Attribute Summary
Attributes inherited from Connection
Instance Method Summary collapse
-
#initialize(pem, host = 'feedback.push.apple.com', port = 2196, pass = nil) ⇒ FeedbackConnection
constructor
A new instance of FeedbackConnection.
- #read ⇒ Object
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
#read ⇒ Object
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 |