Class: DEVp2p::P2PProtocol::Ping

Inherits:
Command
  • Object
show all
Defined in:
lib/devp2p/p2p_protocol.rb

Instance Attribute Summary

Attributes inherited from Command

#receive_callbacks

Instance Method Summary collapse

Methods inherited from Command

#create, decode_payload, encode_payload, #initialize, sedes

Methods included from Configurable

#add_config

Constructor Details

This class inherits a constructor from DEVp2p::Command

Instance Method Details

#receive(proto, data) ⇒ Object



15
16
17
# File 'lib/devp2p/p2p_protocol.rb', line 15

def receive(proto, data)
  proto.send_pong
end