Starting point
None of this code is final - indeed, most of it is just gubbins - but it shows the path I mean to take with the code, I hope. Much more to come.
This commit is contained in:
14
lib/em-bitcoin.rb
Normal file
14
lib/em-bitcoin.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
require 'eventmachine'
|
||||
|
||||
module EventMachine
|
||||
module Protocols
|
||||
# Implements the TCP protocol that Bitcoin peers speak to each other. This
|
||||
# class can be used for both incoming and outgoing connections
|
||||
# @author Nick Thomas <nick@lupine.me.uk>
|
||||
class BitcoinPeer < EventMachine::Connection
|
||||
# TODO!
|
||||
def receive_data(data)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user