Sha256: fe2a6f937c3e2816a7190560bbe02c2333626ae840ac452dd58504663ad53731
Contents?: true
Size: 485 Bytes
Versions: 10
Compression:
Stored size: 485 Bytes
Contents
module ApnServer module Protocol def post_init @address = Socket.unpack_sockaddr_in(self.get_peername) puts "#{Time.now} [#{address.last}:#{address.first}] CONNECT" end def unbind puts "#{Time.now} [#{address.last}:#{address.first}] DISCONNECT" end def receive_data(data) (@buf ||= "") << data if notification = ApnServer::Notification.valid?(@buf) queue.push(notification) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems