15 lines
375 B
Ruby
15 lines
375 B
Ruby
![]() |
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
|