Class: Doom::Net::DesyncMonitor::Desync
- Inherits:
-
Struct
- Object
- Struct
- Doom::Net::DesyncMonitor::Desync
- Defined in:
- lib/doom/net/desync_monitor.rb
Instance Attribute Summary collapse
-
#local ⇒ Object
Returns the value of attribute local.
-
#peer_id ⇒ Object
Returns the value of attribute peer_id.
-
#remote ⇒ Object
Returns the value of attribute remote.
-
#sections ⇒ Object
Returns the value of attribute sections.
-
#tic ⇒ Object
Returns the value of attribute tic.
Instance Method Summary collapse
Instance Attribute Details
#local ⇒ Object
Returns the value of attribute local
25 26 27 |
# File 'lib/doom/net/desync_monitor.rb', line 25 def local @local end |
#peer_id ⇒ Object
Returns the value of attribute peer_id
25 26 27 |
# File 'lib/doom/net/desync_monitor.rb', line 25 def peer_id @peer_id end |
#remote ⇒ Object
Returns the value of attribute remote
25 26 27 |
# File 'lib/doom/net/desync_monitor.rb', line 25 def remote @remote end |
#sections ⇒ Object
Returns the value of attribute sections
25 26 27 |
# File 'lib/doom/net/desync_monitor.rb', line 25 def sections @sections end |
#tic ⇒ Object
Returns the value of attribute tic
25 26 27 |
# File 'lib/doom/net/desync_monitor.rb', line 25 def tic @tic end |
Instance Method Details
#message ⇒ Object
26 27 28 29 30 |
# File 'lib/doom/net/desync_monitor.rb', line 26 def where = sections.nil? || sections.empty? ? 'unknown section' : sections.join(', ') "desync at tic #{tic} with peer #{peer_id}: " \ "local #{format('%08x', local)} != remote #{format('%08x', remote)} (#{where})" end |