Skip to content

Commit

Permalink
Fixed #11256615 in pivotal tracker.
Browse files Browse the repository at this point in the history
feedback client now implemented
  • Loading branch information
jeremytregunna committed Mar 18, 2011
1 parent 5c50800 commit 3fb6edc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/apnserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
require 'apnserver/payload'
require 'apnserver/notification'
require 'apnserver/client'
require 'apnserver/feedback_client'
17 changes: 17 additions & 0 deletions lib/apnserver/feedback_client.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Feedback service

module ApnServer
class FeedbackClient < Client
def initialize(pem, host = 'feedback.push.apple.com', port = 2196, pass = nil)
@pem, @host, @port, @pass = pem, host, port, pass
end

def read
records ||= []
while record = @ssl.read(38)
records << record.unpack("NnH*")
end
records
end
end
end

1 comment on commit 3fb6edc

@Tay77
Copy link

@Tay77 Tay77 commented on 3fb6edc Oct 11, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Show me results

Please sign in to comment.