class Bitcourier::Node::ActiveHandshake
Public Instance Methods
on_enter()
click to toggle source
# File lib/bitcourier/node.rb, line 35 def on_enter node.send_hello end
on_hello(msg)
click to toggle source
# File lib/bitcourier/node.rb, line 39 def on_hello msg if msg.protocol_version == Protocol::Message::Hello::PROTOCOL_VERSION node.remote_port = msg.port set_state ReadyState else node.disconnect end end