Class: EventMachine::DnsCache::Socket
- Inherits:
-
EM::Connection
- Object
- EM::Connection
- EventMachine::DnsCache::Socket
- Defined in:
- lib/em/dns_cache.rb
Instance Attribute Summary collapse
-
#unbind_signaller ⇒ Object
Returns the value of attribute unbind_signaller.
Instance Method Summary collapse
Instance Attribute Details
#unbind_signaller ⇒ Object
Returns the value of attribute unbind_signaller.
276 277 278 |
# File 'lib/em/dns_cache.rb', line 276 def unbind_signaller @unbind_signaller end |
Instance Method Details
#receive_data(dg) ⇒ Object
278 279 280 281 282 283 284 285 |
# File 'lib/em/dns_cache.rb', line 278 def receive_data dg m = nil begin m = Resolv::DNS::Message.decode dg rescue end Request.post(m) if m end |
#unbind ⇒ Object
287 288 289 |
# File 'lib/em/dns_cache.rb', line 287 def unbind @unbind_signaller.call if @unbind_signaller end |