Sha256: d82264718bd735efde84625a4108bd7743c3a3c8e1c7d9bd80b64fc6dfccfc14
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
module ApnServer module Protocol def post_init @address = Socket.unpack_sockaddr_in(self.get_peername) $logger.debug "[#{address.last}:#{address.first}] CONNECT" end def unbind $logger.debug "[#{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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bpoweski-apnserver-0.0.14 | lib/apnserver/protocol.rb |